Skip to content

Commit

Permalink
Fixed GAS claim amount (CityOfZion#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuggins committed Feb 22, 2018
1 parent 73222b9 commit 4297ff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/modules/claim.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import asyncWrap from '../core/asyncHelper'
import { FIVE_MINUTES_MS } from '../core/time'

import { log } from '../util/Logs'
import { toNumber } from '../core/math'
import { toBigNumber, toNumber } from '../core/math'
import { COIN_DECIMAL_LENGTH } from '../core/formatters'

// Constants
export const SET_CLAIM = 'SET_CLAIM'
Expand Down Expand Up @@ -210,7 +211,7 @@ export default (state: Object = initialState, action: ReduxAction) => {
}
return {
...state,
claimAmount: (claimAvailable + claimUnavailable) / 100000000,
claimAmount: toBigNumber(claimAvailable + claimUnavailable).div(10 ** COIN_DECIMAL_LENGTH).toNumber(),
claimAvailable,
claimUnavailable,
claimWasUpdated
Expand Down

0 comments on commit 4297ff8

Please sign in to comment.