Skip to content

Commit

Permalink
fix: pool rate
Browse files Browse the repository at this point in the history
  • Loading branch information
JoowonYun committed Nov 7, 2021
1 parent 40e2200 commit 51b2017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rest/usePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export default (

const calculatedAmount = times(amount, Math.pow(10, fromDecimal))

const rate1 = res ? div(fromValue, res.total_share) : "0"
const rate2 = res ? div(toValue, res.total_share) : "0"
const rate1 = res ? div(div(fromValue, res.total_share), 1e2) : "0"
const rate2 = res ? div(div(toValue, res.total_share), 1e2) : "0"

let price1 = "0"
let price2 = "0"
Expand Down

0 comments on commit 51b2017

Please sign in to comment.