SolvBTC 和 SolvBTC.LST

铸造 SolvBTC/SolvBTC.LSTs

createSubscription(poolId: string,currencyAmount: string): Promise<ContractTransaction>;

参数

poolId:string; // SolvBTC or SolvBTC.LSTs pool id
currencyAmount: string; // The payment currency quantity of the current pool. 
If the pool id is SolvBTC.LST, the currency is SolvBTC

结果

返回EVM链交易对象,默认为待处理状态。

请求赎回

createRedemption(poolId: string, redeemValue: string): Promise<ContractTransaction>;

参数

poolId: string; //SolvBTC or SolvBTC.LSTs pool id
redeemValue: string; // redemption quantity 

结果

返回EVM链交易对象,默认为待处理状态。

注:操作成功后,用户将收到赎回SFT。

取消赎回

cancelRedemption(poolId: string, openFundRedemptionId: string): Promise<ContractTransaction>;

参数

poolId: string; //SolvBTC or SolvBTC.LSTs pool id
openFundRedemptionId: string; //User’s redemption SFT ID

结果

返回EVM链交易对象,默认为待处理状态。

索赔

获取可提款金额

claimableValue(tokenId: string | number): Promise<string>;

参数

tokenId: string | number;  //User’s redemption SFT ID

结果

当前提款金额

索赔

claimTo(params: ClaimToParams): Promise<ContractTransaction>;

参数

type ClaimToParams = {
to: string;  // Withdrawal address
tokenId: string | number; //User’s redemption SFT ID
currency: string; //The contract address of the withdrawal asset 
amount: string | number; // Withdraw amount
}

结果

返回EVM链交易对象,默认为待处理状态。

设置流动性池净资产值

setSubscribeNav

setSubscribeNav(poolId: string, time: string, nav: string): Promise<ContractTransaction>;

参数

poolId: string; //SolvBTC or SolvBTC.LSTs pool id
nav: string; //nav value

结果

返回EVM链交易对象,默认为待处理状态。

setRedeemNav

setRedeemNav( poolId: string, redeemSlot: string, nav: string, currencyBalance: string ): Promise<ContractTransaction>;

参数

poolId: string; //SolvBTC or SolvBTC.LSTs pool id
redeemSlot: string; //Redemption SFT batch no.
nav: string; //nav value
currencyBalance: string; // Total amount managed by the pool

结果

返回EVM链交易对象,默认为待处理状态。

最后更新于