Skip to content

Commit

Permalink
Add tokenId property to Token struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Gideonnn committed Feb 16, 2023
1 parent 0fb3ce9 commit 89c0b8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/modules/staking/StakingViewer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ contract StakingViewer is Multicall {
}

struct Token {
uint tokenId;
uint poolId;
uint activeStake;
uint expiredStake;
Expand Down Expand Up @@ -318,6 +319,7 @@ contract StakingViewer is Multicall {
token.rewards += deposit.reward;
}

token.tokenId = tokenId;
token.poolId = poolId;
token.deposits = new Deposit[](depositCount);

Expand Down

0 comments on commit 89c0b8e

Please sign in to comment.