@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
16 lines (11 loc) • 376 B
JavaScript
// some tools to make treating ratios as percents easier
import { makeRatio } from '../../contractSupport/index.js';
const BASIS_POINTS = 10000n;
/** @type {Make100Percent} */
export function make100Percent(brand) {
return makeRatio(BASIS_POINTS, brand, BASIS_POINTS);
}
/** @type {Make0Percent} */
export function make0Percent(brand) {
return makeRatio(0n, brand);
}