Skip to content

Commit

Permalink
Fix SY withdraw forfeits value (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfm-slava authored Apr 16, 2021
1 parent 19120d2 commit aa11239
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/smart-yield/providers/pool-provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ const PoolProvider: React.FC = props => {

const abondDebt = await pool.contracts.smartYield.getAbondDebt();

return abondDebt.multipliedBy(amount).dividedBy(totalSupply.dividedBy(10 ** decimals));
return abondDebt
.dividedBy(10 ** decimals)
.multipliedBy(amount)
.dividedBy(totalSupply.dividedBy(10 ** decimals));
},
[state.pool],
);
Expand Down

0 comments on commit aa11239

Please sign in to comment.