Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Mar 5, 2022
1 parent 716f1a7 commit d19adeb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/DelegateForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,9 @@ class DelegateForm extends React.Component {
this.setState({error: undefined})
const messages = this.buildMessages(parseInt(this.props.availableBalance.amount * 0.95) / 1_000_000.0)
this.props.stargateClient.simulate(this.props.address, messages).then(gas => {
console.log(gas)
const saveTxFeeNum = (this.props.redelegate || this.props.undelegate) ? 0 : 10
const gasPrice = this.props.stargateClient.getFee(gas).amount[0].amount
console.log(gasPrice)
const amount = (this.props.availableBalance.amount - (gasPrice * saveTxFeeNum)) / 1_000_000.0
console.log(amount)

this.setState({amount: amount > 0 ? amount : 0})
}, error => {
Expand Down

0 comments on commit d19adeb

Please sign in to comment.