Skip to content

Commit

Permalink
fix: addliquidity calculation (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
jebsley3 authored Jan 14, 2023
1 parent ecf2e1b commit 683d9a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function useRamosAdmin() {
const handleAddLiquidityInput = async (stableAmount: DecimalBigNumber) => {
let templeAmount = DBN_ZERO;
if(isConnected) {
templeAmount = stableAmount.mul(templePrice);
templeAmount = stableAmount.div(templePrice, stableAmount.getDecimals());
}
return {templeAmount: templeAmount, stableAmount: stableAmount}
}
Expand Down

0 comments on commit 683d9a4

Please sign in to comment.