Skip to content

Commit

Permalink
Merge pull request #37 from sushiswap/fix_slp
Browse files Browse the repository at this point in the history
Fixed slp decimal bug
  • Loading branch information
jiro-ono authored Apr 15, 2021
2 parents 2cbfb1a + c722d15 commit 33b6b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sushiswap/sushi-data",
"license": "MIT",
"version": "1.0.20",
"version": "1.0.21",
"author": "SushiSwap",
"main": "index",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion queries/bentobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const kashiStakedInfo = {
let asset = await tokenInfo({ token_address: result.asset.id });
let assetPool = await chefPool({ pool_address: result.id });
if (assetPool === undefined) { return }
let stakedAmt = assetPool.slpBalance;
let stakedAmt = assetPool.slpBalance * 1e18;
let balanceUSD = (stakedAmt * asset.derivedETH * results.ethUSD) / (10 ** result.asset.decimals);
let rewardPerBlock = ((1 / results.totalAP) * results.sushiPerBlock);
let roiPerBlock = (rewardPerBlock * results.sushiUSD) / balanceUSD;
Expand Down

0 comments on commit 33b6b3d

Please sign in to comment.