Skip to content

Commit

Permalink
Fix: refresh of balance (#5)
Browse files Browse the repository at this point in the history
* fix: can have successful callback when get balance

* feat: update readme file

* feat: update readme file

* refactor: style update(make tabbar content to be center of the heafer)

* Update

* refactore: make font more bold

* refactor: second asset default to be KSM

* refactor: change BTC to WOOD token

* fix: refersh of balance
  • Loading branch information
winar-jin authored and en committed Sep 22, 2019
1 parent c4e60eb commit 0b6733d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/packages/app-superfluid/src/componments/Selection/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,12 @@ class Swap extends TxComponent<Props, State> {
const {outputAsset, inputAsset} = this.state
let inputRes = await api.query.superfluid.balances([inputAsset, accountId])
let outputRes = await api.query.superfluid.balances([outputAsset, accountId])
this.setState({
outputBalance:outputRes,
inputBalance:inputRes,

})
_.delay(() => {
this.setState({
outputBalance:outputRes,
inputBalance:inputRes,
})
}, 500)
}

// 获得费率
Expand Down

0 comments on commit 0b6733d

Please sign in to comment.