Reward Calculation Examples
Example 1:
A user has staked:
3 Legendary
15 Common NFTs.
He is an All-Squad holder as he has one NFT from each squad.
He also has 5 unstaked NFTs (In the wallet, but not staked). These unstaked NFTs are ignored when calculating rewards.
The Smart Contract calculates this user stats to be:
totalNFTCountForHolder: 18
isLegendaryStaker: Yes
stakedLegendaryCountForHolder: 3
isAllSquadStaker: Yes
commonNFTHolder: Yes
commonNFTCountforHolder: 7 (15 - 8 from All-Squad)
The Smart Contract Also Calculates:
totalLegendaryStaked: 20 (total of all legendaries staked)
totalAllSquadHolders: 50 (total AllSquad holders)
totalCommonNFTsStaked: 161 (total of all common NFTs staked)
The admin distributes rewards: 100,000 EG tokens to all users.
Legendary Pool - 45,000 EG (45%)
All Squad Pool - 45,000 EG (45%)
Common Pool - 10,000 EG (10%)
Our User gets: 8084.78 EG Tokens
From Legendary Pool - 6750 (3/20 * 45000)
All Squad Pool - 900 (1/50 * 45000)
Common Pool - 434.78 (7/161 * 10000)
Example 2:
A user has staked:
2 Legendary
7 Common NFTs.
He is NOT an All-Squad holder.
He also has 2 unstaked NFTs (In the wallet, but not staked). These unstaked NFTs are ignored when calculating rewards.
Smart Contract Calculates this user stats to be:
totalNFTCountForHolder: 9
isLegendaryHolder: Yes
legendaryCountForHolder: 2
isAllSquadHolder: No
commonNFTHolder: Yes
commonNFTCountforHolder: 7
Smart Contract Also Calculates:
totalLegendaryStaked: 20 (total of all legendaries staked)
totalAllSquadHolders: 50 (total AllSquad holders)
totalCommonNFTsStaked: 161 (total of all common NFTs staked. Calculate commonNFTCountforHolder for all holders)
Admin Distributes Rewards (distributeRewards): 100,000 EG tokens to all users.
Legendary Pool - 45,000 EG (45%)
All Squad Pool - 45,000 EG (45%)
Common Pool - 10,000 EG (10%)
Our User gets: 4934.78 EG Tokens
From Legendary Pool - 4500 (2/20 * 45000)
All Squad Pool - 0
Common Pool - 434.78 (7/161 * 10000)
Example 3:
A user has staked:
0 Legendary
20 Common NFTs.
He is an All-Squads Holder but has accumulated two All-Squads in the same wallet.
Smart Contract Calculates this user stats to be:
totalNFTCountForHolder: 20
isLegendaryHolder: No
legendaryCountForHolder: 0
isAllSquadHolder: Yes
commonNFTHolder: Yes
commonNFTCountforHolder: 12
Smart Contract Also Calculates:
totalLegendaryStaked: 20 (total of all legendaries staked)
totalAllSquadHolders: 50 (total AllSquad holders)
totalCommonNFTsStaked: 161 (total of all common NFTs staked. Calculate commonNFTCountforHolder for all holders)
Admin Distributes Rewards (distributeRewards): 100,000 EG tokens to all users.
Legendary Pool - 45,000 EG (45%)
All Squad Pool - 45,000 EG (45%)
Common Pool - 10,000 EG (10%)
Our User gets: 1645.34 EG Tokens
From Legendary Pool - 0 (0/20 * 45000)
All Squad Pool - 900 (1/50 * 45000)
Common Pool - 745.34 (12/161 * 10000)
Note: Only 1 All Squad holder is allowed per wallet. The user in Example 3 can send his second All Squad to another wallet for staking to get a higher reward. If not, all NFTs after the first All Squad will be treated as common NFTs and will get a lower reward.
Last updated