Ledger
Ledger module allow users to liquidity stake/unstake rTokens and rToken relayers to send proposals.
Way to Stake/Unstake rToken
Stake: Take rATOM as an example, only a common transfer on Cosmos Hub is needed to get rATOM. By sending an amount of ATOM to the given pool accounts of rATOM, rToken relayers will receive the corresponding event and send an execute-bond-proposal to StafiHub which will mint rATOM for the from account.
Unstake: liquidity-unbond is the rpc interface for rToken holders to redeem their origin tokens.
Available Query Commands
Query AccountUnbond
Query BondRecord
Query bonded-pools
Query getChainEra
Query EraExchangeRate by a given denom and era
Query EraExchangeRatesByDenom
Query getEraUnbondLimit
Show ExchangeRate for a given denom
List all ExchangeRate
Query subaccounts and threshold of a pool
Query unbonds by a given pool
Query protocol fee receiver
Query relay fee receiver
Query staking reward commission
Query total protocol fee
Query getUnbondCommission
Query getUnbondRelayFee
stafihubd query ledger account-unbond
stafihubd query ledger bond-record
stafihubd query ledger bonded-pools
stafihubd query ledger chain-era
stafihubd query ledger era-exchange-rate
stafihubd query ledger era-exchange-rates
stafihubd query ledger era-unbond-limit
stafihubd query ledger exchange-rate
stafihubd query ledger exchange-rate-list
stafihubd query ledger pool-detail
stafihubd query ledger pool-unbond
stafihubd query ledger protocol-fee-receiver
stafihubd query ledger relay-fee-receiver
stafihubd query ledger staking-reward-commission
stafihubd query ledger total-protocol-fee
stafihubd query ledger unbond-commission
stafihubd query ledger unbond-relay-fee
Useful Tx Commands
redeem rToken
stafihubd tx ledger liquidity-unbond
Last updated