blockful-io / shutter-staking-dapp

https://shutter-staking-dapp.vercel.app
MIT License
0 stars 0 forks source link

[Data Source] Get stkSHU staked balance #42

Open FrancoAguzzi opened 1 month ago

FrancoAguzzi commented 1 month ago

Get user stakes and sum total stkSHU amount

This can be done by either calling Staking or Delegate contract, based on the address "isKeyper" truth. Then, "getUserStakeIds" must be called, followed by individual "stakes" function call for each stake id. Lastly, a sum of all stake amounts shall be done to achieve the desired total stkSHU amount.