@interlay/interbtc-api / Exports / RewardsAPI
▸ computeCollateralInStakingPool(vaultId, nominatorId): Promise<MonetaryAmount<CollateralCurrencyExt>>
| Name | Type | Description |
|---|---|---|
vaultId |
InterbtcPrimitivesVaultId |
The account ID of the staking pool nominee |
nominatorId |
AccountId |
The account ID of the staking pool nominator |
Promise<MonetaryAmount<CollateralCurrencyExt>>
A Monetary.js amount object, representing the collateral in the given currency
▸ getStakingPoolNonce(currency, vaultId): Promise<number>
| Name | Type | Description |
|---|---|---|
currency |
CurrencyExt |
The staked currency |
vaultId |
AccountId |
The account ID of the staking pool nominee |
Promise<number>
The current nonce of the staking pool
▸ withdrawRewards(vaultId, nonce?): Promise<ExtrinsicData>
| Name | Type | Description |
|---|---|---|
vaultId |
InterbtcPrimitivesVaultId |
VaultId object |
nonce? |
number |
Staking pool nonce |
Promise<ExtrinsicData>
A submittable extrinsic and an event that is emitted when extrinsic is submitted.
Remarks
Withdraw all rewards from the current account in the vaultId staking pool.