2020-02-28 06:58:40 -03:00
|
|
|
import { BigNumber } from 'bignumber.js'
|
2019-03-21 19:12:49 +04:00
|
|
|
import React from 'react'
|
2018-03-01 09:05:56 +01:00
|
|
|
import ReactDOM from 'react-dom'
|
2020-02-28 06:58:40 -03:00
|
|
|
|
2020-05-20 16:15:21 -03:00
|
|
|
import Root from 'src/components/Root'
|
|
|
|
import loadCurrentSessionFromStorage from 'src/logic/currentSession/store/actions/loadCurrentSessionFromStorage'
|
|
|
|
import loadActiveTokens from 'src/logic/tokens/store/actions/loadActiveTokens'
|
2020-08-14 12:15:09 -03:00
|
|
|
import loadDefaultSafe from 'src/logic/safe/store/actions/loadDefaultSafe'
|
|
|
|
import loadSafesFromStorage from 'src/logic/safe/store/actions/loadSafesFromStorage'
|
2020-05-20 16:15:21 -03:00
|
|
|
import { store } from 'src/store'
|
2019-04-04 17:35:32 +04:00
|
|
|
|
2019-11-27 10:43:44 +01:00
|
|
|
BigNumber.set({ EXPONENTIAL_AT: [-7, 255] })
|
2019-11-25 11:44:26 +03:00
|
|
|
|
2019-04-17 16:47:21 +04:00
|
|
|
store.dispatch(loadActiveTokens())
|
2019-04-04 17:35:32 +04:00
|
|
|
store.dispatch(loadSafesFromStorage())
|
2019-09-19 13:30:13 +04:00
|
|
|
store.dispatch(loadDefaultSafe())
|
2020-01-16 14:28:28 -03:00
|
|
|
store.dispatch(loadCurrentSessionFromStorage())
|
2018-03-01 09:05:56 +01:00
|
|
|
|
2019-11-22 20:23:57 -03:00
|
|
|
const root = document.getElementById('root')
|
|
|
|
|
|
|
|
if (root !== null) {
|
|
|
|
ReactDOM.render(<Root />, root)
|
|
|
|
}
|