Market Calculations
How to calculate pricing, discount, vesting etc for markets
Pricing & Discount
const [
currentCapacity,
marketPrice,
marketScale,
maxAmountAccepted,
marketInfo,
isLive,
markets,
ownerPayoutBalance,
ownerPayoutAllowance,
] = await Promise.all([
auctioneerContract.currentCapacity(marketId),
auctioneerContract.marketPrice(marketId),
auctioneerContract.marketScale(marketId),
auctioneerContract.maxAmountAccepted(
marketId,
referrerAddress,
),
auctioneerContract.getMarketInfoForPurchase(marketId),
auctioneerContract.isLive(marketId),
auctioneerContract.markets(marketId),
payoutTokenContract.balanceOf(owner),
payoutTokenContract.allowance(
ownerAddress,
tellerAddress,
),
]);Vesting
Capacity, Payout & Allowances
Last updated