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

Commit

Permalink
feat: include claim fee in estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Mar 30, 2019
1 parent 1841123 commit 81f2c30
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/swaptab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,14 @@ class SwapTab extends React.Component {
const { minerFees } = this.props.fees;

if (this.baseAsset.isLightning) {
return minerFees[this.quoteAsset.symbol].reverse;
const { lockup, claim } = minerFees[this.quoteAsset.symbol].reverse;

return lockup + claim;
} else {
return minerFees[this.baseAsset.symbol].normal;
}
};

// TODO: calculate additional onchain fees for reverse swaps
calculateFee = baseAmount => {
const { feePercentage } = this.state;

Expand Down

0 comments on commit 81f2c30

Please sign in to comment.