Skip to content

Commit

Permalink
add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid committed Oct 22, 2020
1 parent 3937daf commit fa7714e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Delegation/StakingDashboard.js
Expand Up @@ -198,6 +198,10 @@ class StakingDashboard extends React.Component<Props, State> {
if (this._intervalId != null) clearInterval(this._intervalId)
}

/**
* TODO(v-almonacid): prefer computing balance from tx cache instead of
* utxo set
*/
navigateToStakingCenter: (void) => Promise<void> = async () => {
const {navigation, utxos, poolOperator, accountBalance} = this.props
/* eslint-disable indent */
Expand Down Expand Up @@ -619,6 +623,10 @@ class StakingDashboard extends React.Component<Props, State> {
s: leftPadDate(timeLeftInEpoch.getUTCSeconds()),
}}
/>
{
// TODO(v-almonacid): prefer computing balance from tx cache
// instead of utxo set
}
<UserSummary
totalAdaSum={utxoBalance}
totalRewards={accountBalance}
Expand Down
4 changes: 4 additions & 0 deletions src/components/Send/SendScreen.js
Expand Up @@ -331,6 +331,10 @@ class SendScreen extends Component<Props, State> {
handleCheckBoxChange: (boolean) => void = (sendAll) =>
this.setState({sendAll})

/**
* TODO(v-almonacid): prefer computing balance from tx cache instead of
* utxo set
*/
handleConfirm: () => Promise<void> = async () => {
const {navigation, utxos, availableAmount} = this.props
const {address, amount, sendAll} = this.state
Expand Down
4 changes: 4 additions & 0 deletions src/components/TxHistory/TxHistory.js
Expand Up @@ -128,6 +128,10 @@ const TxHistory = ({
{isOnline &&
lastSyncError && <SyncErrorBanner showRefresh={!isSyncing} />}

{
// TODO(v-almonacid): prefer computing balance from tx cache
// instead of utxo set
}
<AvailableAmountBanner amount={utxoBalance} />

{_.isEmpty(transactionsInfo) ? (
Expand Down

0 comments on commit fa7714e

Please sign in to comment.