Commit c94e8ff6 authored by Moody Salem's avatar Moody Salem

Remove the WETH token from the user added tokens

parent 04584cc4
import { createReducer } from '@reduxjs/toolkit'
import { ChainId, WETH } from '@uniswap/sdk'
import {
addSerializedPair,
addSerializedToken,
......@@ -66,6 +67,14 @@ export default createReducer(initialState, builder =>
.addCase(updateVersion, state => {
if (GIT_COMMIT_HASH && state.lastVersion !== GIT_COMMIT_HASH) {
state.lastVersion = GIT_COMMIT_HASH
// Wed May 20, 2020 @ ~9pm central
if (state.timestamp < 1590027589111) {
// this should remove the user added token from 'eth' for mainnet
if (state.tokens[ChainId.MAINNET]) {
delete state.tokens[ChainId.MAINNET][WETH[ChainId.MAINNET].address]
}
}
}
state.timestamp = currentTimestamp()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment