Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed GAS claim amount
Browse files Browse the repository at this point in the history
mhuggins committed Jan 26, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6276a54 commit 83ed92a
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
@@ -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'
@@ -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

0 comments on commit 83ed92a

Please sign in to comment.