Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
fix: fee calculation of quote amount (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Apr 3, 2019
1 parent e3f15e1 commit 3f39758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/swaptab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class SwapTab extends React.Component {
const { rate } = this.state.rate;
const fee = this.calculateFee(baseAmount);

const quote = Number((baseAmount * rate - fee * rate).toFixed(8));
const quote = Number((baseAmount * rate - fee).toFixed(8));

const inputError = !this.checkBaseAmount(baseAmount);

Expand Down

0 comments on commit 3f39758

Please sign in to comment.