Purchases & Redemptions
How to enable users to purchase and redeem bonds
Purchases
amount = ethers.utils.parseUnits(amount.toString(), quoteDecimals)
.toString();
minAmountOut = ethers.utils.parseUnits(minAmountOut.toString(), payoutDecimals)
.toString()tellerContract.purchase(
recipientAddress,
referrer,
id,
amount,
minAmountOut,
overrides
);Redemptions
Last updated