/** * Subscribe with payment currency (i.e. WBTC) and receive SolvBTC. * @param poolId: The pool ID corresponding to SolvBTC or SolvBTC LST. * @param currencyAmount: Amount of currency to be deposited. * @return shareValue: Amount of SolvBTC to be received after subscription. */functioncreateSubscription(bytes32 poolId,uint256 currencyAmount) externalreturns (uint256 shareValue);
Withdraw Request
/** * Redeem with SolvBTC and receive currency (i.e. WBTC). * @param poolId: The pool ID corresponding to SolvBTC or SolvBTC LST. * @param redeemAmount: Amount of SolvBTC to be withdrawn. * @return redemptionId: TokenId of the redemption SFT to be received after redemption. */functioncreateRedemption(bytes32 poolId,uint256 redeemAmount) externalreturns (uint256 redemptionId);
Revoke Withdraw Request
/** * Revoke redemption with target the tokenId of redemption SFT and receive SolvBTC * with an equivalent amount of the value of the redemption SFT token. * @param poolId: The pool ID corresponding to SolvBTC or SolvBTC LST. * @param redemptionId: TokenId of the redemption SFT to be revoked. */functioncancelRedemption(bytes32 poolId,uint256 redemptionId) external;