Skip to content

Commit

Permalink
Update #2 to the MetaSwap contract address (#9557)
Browse files Browse the repository at this point in the history
  • Loading branch information
danjm authored Oct 12, 2020
1 parent 0e37904 commit 33b755f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/swaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
fetchSwapsFeatureLiveness as defaultFetchSwapsFeatureLiveness,
} from '../../../ui/app/pages/swaps/swaps.util'

const METASWAP_ADDRESS = '0x016B4bf68d421147c06f1b8680602c5bf0Df91A8'
const METASWAP_ADDRESS = '0x881d40237659c251811cec9c364ef91dc08d300c'

// The MAX_GAS_LIMIT is a number that is higher than the maximum gas costs we have observed on any aggregator
const MAX_GAS_LIMIT = 2500000
Expand Down
4 changes: 2 additions & 2 deletions test/unit/app/controllers/swaps-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MOCK_QUOTES = {
value: '0x17647444f166000',
gas: '0xe09c0',
gasPrice: undefined,
to: '0x016B4bf68d421147c06f1b8680602c5bf0Df91A8',
to: '0x881d40237659c251811cec9c364ef91dc08d300c',
},
sourceAmount: '1000000000000000000000000000000000000',
destinationAmount: '396493201125465',
Expand Down Expand Up @@ -59,7 +59,7 @@ const MOCK_QUOTES_APPROVAL_REQUIRED = {
value: '0x17647444f166000',
gas: '0xe09c0',
gasPrice: undefined,
to: '0x016B4bf68d421147c06f1b8680602c5bf0Df91A8',
to: '0x881d40237659c251811cec9c364ef91dc08d300c',
},
sourceAmount: '1000000000000000000000000000000000000',
destinationAmount: '396493201125465',
Expand Down
2 changes: 1 addition & 1 deletion ui/app/helpers/constants/swaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export const OFFLINE_FOR_MAINTENANCE = 'offline-for-maintenance'
// A gas value for ERC20 approve calls that should be sufficient for all ERC20 approve implementations
export const DEFAULT_ERC20_APPROVE_GAS = '0x1d4c0'

export const SWAPS_CONTRACT_ADDRESS = '0x016b4bf68d421147c06f1b8680602c5bf0df91a8'
export const SWAPS_CONTRACT_ADDRESS = '0x881d40237659c251811cec9c364ef91dc08d300c'

0 comments on commit 33b755f

Please sign in to comment.