anchor-token-contracts icon indicating copy to clipboard operation
anchor-token-contracts copied to clipboard

How to provide liquidity in a smart contract?

Open noorchauhan opened this issue 3 years ago • 1 comments

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?

noorchauhan avatar Apr 14 '22 07:04 noorchauhan

Can you please provide more descriptions with references ? - for example, in which contract you added the feature on, also there's ambiguity in the the staking part of your question - a bit more explicit description would help people understand the issue better.

rayedsikder avatar Jul 12 '22 09:07 rayedsikder