Mint liquid farm share for auto compounding rewards. The module mints the corresponding amount of sbCoin and sends it to the farmer when the execution is complete.
Usage
mint-share [public-position-id] [desired-amount]
Argument
Description
public-position-id
liquid farm id
desired-amount
deposit amounts of base and quote coins
Example
# In order to fully test the module in your local network, liquidFarm must be set up by governance proposal. ## For example, crescentdtxgovsubmit-proposalpublic-position-createproposal.json--chain-idlocalnet--fromaliceWhereproposal.jsoncontains:{"title":"Public Position Create Proposal","description":"Let's start new liquid amm","pool_id":"1","lower_price":"4.5","upper_price":"5.5","min_bid_amount":"100000000","fee_rate":"0.003"}# mint sharecrescentdtxliquidammmint-share1100000000uatom,500000000uusd \--chain-id localnet \--from alice## Tips## Query all the registered public position objectscrescentdqliquidammpublic-positions-ojson|jq## Query account balances to see if Alice has sb-coin.crescentdqbankbalancescre1zaavvzxez0elundtn32qnk9lkm8kmcszxclz6p-ojson|jq
BurnShare
Burn liquid amm share to withdraw underlying tokens.
Usage
burn-share [public-position-id] [share]
Argument
Description
public-position-id
liquid farm id
share
desired amount of burning share
Example
crescentdtxliquidammburn-share110000000000sb1 \--chain-id localnet \--from alice \## Tips## Query account balancescrescentdqbankbalancescre1zaavvzxez0elundtn32qnk9lkm8kmcszxclz6p-ojson|jq
PlaceBid
Place a bid for a rewards auction. Bidders estimate how much rewards for the next epoch will be accumulated and place their bids accordingly with sb coin amount.
crescentdtxliquidammplace-bid1110000000sb1 \--chain-id localnet \--from alice \## Tips#crescentdqliquidammbids1-ojson|jq
Query
Params
Query the current liquidamm parameters information.
Usage
params
Example
crescentdqueryliquidammparams-ojson|jq
PublicPositions
Query for all public positions.
Usage
public-positions
Example
crescentdqueryliquidammpublic-positions-ojson|jq
PublicPosition
Query the specific public position with id.
Usage
public-position [public-position-id]
Example
crescentdqueryliquidammpublic-position1-ojson|jq
RewardsAuctions
Query all rewards auctions for specific public position.
Usage
rewards-auctions [public-position-id]
Example
# The "rewards_auction_duration" param is the duration that is used to create new rewards auction in begin blocker.# You can adjust the value in config-test.yml file to make it faster or slower.# By default, the value is set to 8 hours but for local testing purpose it is set to 120 seconds.# If you wait 120 seconds (2 minutes) after starting a local network, the module automatically creates new rewards auction.
crescentdqueryliquidammrewards-auctions1-ojson|jqcrescentdqueryliquidammrewards-auctions1--statusAUCTION_STATUS_STARTED-ojson|jqcrescentdqueryliquidammrewards-auctions1--statusAUCTION_STATUS_FINISHED-ojson|jqcrescentdqueryliquidammrewards-auctions1--statusAUCTION_STATUS_SKIPPED-ojson|jq
RewardsAuction
Query the specific reward auction
Usage
rewards-auction [public-position-id] [auction-id]
Example
crescentdqueryliquidammrewards-auction11-ojson|jq
Bids
Query all bids for the rewards auction
Usage
bids [public-position-id] [auction-id]
Example
crescentdqueryliquidammbids11-ojson|jq
Rewards
Query current farming rewards for the particular liquid farm