Skip to content

How to provide liquidity in a smart contract?  #41

Description

@noorchauhan

Currently, I have been working on a sample fork project of anchor protocol with my fellow mate. We have been working on our own version of RUST SC forked from anchor protocol, yet we usually get stuck when we start to think about liquidity providers.

IMAGINE
I have made an SC where I have added a feature where it gives me a staking reward on the testnet of Terra and it is only myself staking 5 LUNA in the SC. The ability of the SC states that a staker will get 25% of the total staked value after 7 days of staking. However here it is only myself staking on the contract and this contract does not allow MINTING of new tokens. The reward is given to the user in the staked token itself.
How can I possibly get the reward token IF I HAVE TWO OR THREE USERS STAKING ON THE SC?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions