Calculating Staking returns to Woof
When Staking any Main Token (SHIB/LEASH/BONE
)
SHIB/LEASH/BONE
from the users wallet is withdrawn and added toxSHIB
ContractxSHIB/xLEASH/tBONE
Tokens are minted and returned to the userThus
xSHIB/xLEASH/tBONE
Contracts Hold all of theSHIB/LEASH/BONE
staked
How to calculate a users Main Token (SHIB/LEASH/BONE) share of staking rewards at any point
Contracts involved
Shiba Inu Ecosystem Main Token Name | Shiba Inu Ecosystem Main Token Symbol | Shiba Inu Ecosystem Main Token Contract Address | Staked Token Symbol | Staked Token Contract Address |
Shiba Inu | SHIB | xSHIB | ||
Leash | LEASH | xLEASH | ||
Bone | BONE | tBONE |
To calculate a users share of SHIB (as an example) rewards at any point we use the following formula
We need to find out how much xSHIB the wallet holds
This can be done by
Simply looking at the xSHIB tokens in the wallet or
By Navigating to this url
You should see 7 numbered rows
Choose the second one
2. balanceOf
This expects an address , which as you guessed is the wallet address
Enter that address and hit Query
This should return the xSHIB held by the wallet
Now we need to find out the total SHIB locked in
We need to do this because , when we stake SHIB,
the xSHIB contract hold the SHIB and then mints and returns xSHIB
To do this we need to the SHIB contract
Navigate to this url
You should see 6 numbered rows
Choose number
4.balanceOf
This expects an address, but unlike the last time, this isn't a wallet address but the address of the xSHIB contracts itself, which is
0xB4a81261b16b92af0B9F7C4a83f1E885132D81e4
Enter that in the box
This should return the total SHIB held by the address
Lastly, we need the total supply of xSHIB
We can obtain this from the xSHIB contract
Navigate to this url
You should see 7 numbered rows
Choose the 7th one
7.totalSupply
This should return the total xSHIB held by the address
Now let us use the formula
Step 1
gives us xSHIB in users wallet - lets call it -usersShare
Step 2
gives us total SHIB Locked in by xSHIB , lets call it -totalShibLocked
Step 3
gives us total xSHIB in existence , lets call it totalxShibTotalSupply
So Total SHIB would be
As you may be aware, the number of decimals by default is 18, So divide the number you obtain in
step 4
by 10^18 (1 and 18 zeroes)That should give you the SHIB available to be woofed at any point.
How to calculate a users BONE token share of staking rewards at any point?
Bone Token shares are calculated offline and distributed via Special Merkel Distributors
Last updated