What contract to query for getting user's staking rewards info for Pancakeswap Auto CAKE pool?

Viewed 201

I managed already to write code interacting with Auto CAKE pool contract in order to get user balance. This can be done by interacting with bsc smart contract 0xa80240Eb5d7E05d3F250cF000eEc0891d00b51CC and calling userInfo function.

Hoewever, this function does not return the current balance but it returns the " cakeAtLastUserAction", which is the total number of CAKE deposited in this contract by the user. It doesn't include the CAKE rewards generated in-between.

What contract should be queried to get the number of CAKE rewards generated for a user with the Pancakeswap AutoCAKE pool?

Best regards.

0 Answers
Related