Reward Calculation Examples

Example 1:

A user has staked:

  1. 3 Legendary

  2. 15 Common NFTs.

  3. He is an All-Squad holder as he has one NFT from each squad.

  4. 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:

  1. totalNFTCountForHolder: 18

  2. isLegendaryStaker: Yes

  3. stakedLegendaryCountForHolder: 3

  4. isAllSquadStaker: Yes

  5. commonNFTHolder: Yes

  6. commonNFTCountforHolder: 7 (15 - 8 from All-Squad)

The Smart Contract Also Calculates:

  1. totalLegendaryStaked: 20 (total of all legendaries staked)

  2. totalAllSquadHolders: 50 (total AllSquad holders)

  3. totalCommonNFTsStaked: 161 (total of all common NFTs staked)

The admin distributes rewards: 100,000 EG tokens to all users.

  1. Legendary Pool - 45,000 EG (45%)

  2. All Squad Pool - 45,000 EG (45%)

  3. Common Pool - 10,000 EG (10%)

Our User gets: 8084.78 EG Tokens

  1. From Legendary Pool - 6750 (3/20 * 45000)

  2. All Squad Pool - 900 (1/50 * 45000)

  3. Common Pool - 434.78 (7/161 * 10000)

Example 2:

A user has staked:

  1. 2 Legendary

  2. 7 Common NFTs.

  3. He is NOT an All-Squad holder.

  4. 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:

  1. totalNFTCountForHolder: 9

  2. isLegendaryHolder: Yes

  3. legendaryCountForHolder: 2

  4. isAllSquadHolder: No

  5. commonNFTHolder: Yes

  6. commonNFTCountforHolder: 7

Smart Contract Also Calculates:

  1. totalLegendaryStaked: 20 (total of all legendaries staked)

  2. totalAllSquadHolders: 50 (total AllSquad holders)

  3. totalCommonNFTsStaked: 161 (total of all common NFTs staked. Calculate commonNFTCountforHolder for all holders)

Admin Distributes Rewards (distributeRewards): 100,000 EG tokens to all users.

  1. Legendary Pool - 45,000 EG (45%)

  2. All Squad Pool - 45,000 EG (45%)

  3. Common Pool - 10,000 EG (10%)

Our User gets: 4934.78 EG Tokens

  1. From Legendary Pool - 4500 (2/20 * 45000)

  2. All Squad Pool - 0

  3. Common Pool - 434.78 (7/161 * 10000)

Example 3:

A user has staked:

  1. 0 Legendary

  2. 20 Common NFTs.

  3. He is an All-Squads Holder but has accumulated two All-Squads in the same wallet.

Smart Contract Calculates this user stats to be:

  1. totalNFTCountForHolder: 20

  2. isLegendaryHolder: No

  3. legendaryCountForHolder: 0

  4. isAllSquadHolder: Yes

  5. commonNFTHolder: Yes

  6. commonNFTCountforHolder: 12

Smart Contract Also Calculates:

  1. totalLegendaryStaked: 20 (total of all legendaries staked)

  2. totalAllSquadHolders: 50 (total AllSquad holders)

  3. totalCommonNFTsStaked: 161 (total of all common NFTs staked. Calculate commonNFTCountforHolder for all holders)

Admin Distributes Rewards (distributeRewards): 100,000 EG tokens to all users.

  1. Legendary Pool - 45,000 EG (45%)

  2. All Squad Pool - 45,000 EG (45%)

  3. Common Pool - 10,000 EG (10%)

Our User gets: 1645.34 EG Tokens

  1. From Legendary Pool - 0 (0/20 * 45000)

  2. All Squad Pool - 900 (1/50 * 45000)

  3. 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