How to Track a yeild rewards of a protocols

Hi

I am working on a Defi solution. I want to track a yield reward of a certain protocol. How can I achieve it by using Moralis? For example, Lido ETH staking facilities and users collect rewards. how to track these total rewards in that protocol of a particular wallet address.

Thank you

Hey I’m not too familiar with how Lido staking works, but usually staking can be tracked by either the LP token hold or the data stored in smart contract. If it’s in the form of LP token that represents a portion of the pool then you should be able to calculate it easily. Otherwise you might need to access the smart contract if the data is stored there.

I’m not aware of any other way the staking amount is stored, but if it’s different in Lido you need to do a bit more research :raised_hands:

1 Like