From 33b755fa6615ac06c57509c0d98c3cc360406793 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Mon, 12 Oct 2020 14:50:37 -0230 Subject: [PATCH] Update #2 to the MetaSwap contract address (#9557) --- app/scripts/controllers/swaps.js | 2 +- test/unit/app/controllers/swaps-test.js | 4 ++-- ui/app/helpers/constants/swaps.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/scripts/controllers/swaps.js b/app/scripts/controllers/swaps.js index 7a9568863..682eff4aa 100644 --- a/app/scripts/controllers/swaps.js +++ b/app/scripts/controllers/swaps.js @@ -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 diff --git a/test/unit/app/controllers/swaps-test.js b/test/unit/app/controllers/swaps-test.js index b6159dafd..60395403c 100644 --- a/test/unit/app/controllers/swaps-test.js +++ b/test/unit/app/controllers/swaps-test.js @@ -26,7 +26,7 @@ const MOCK_QUOTES = { value: '0x17647444f166000', gas: '0xe09c0', gasPrice: undefined, - to: '0x016B4bf68d421147c06f1b8680602c5bf0Df91A8', + to: '0x881d40237659c251811cec9c364ef91dc08d300c', }, sourceAmount: '1000000000000000000000000000000000000', destinationAmount: '396493201125465', @@ -59,7 +59,7 @@ const MOCK_QUOTES_APPROVAL_REQUIRED = { value: '0x17647444f166000', gas: '0xe09c0', gasPrice: undefined, - to: '0x016B4bf68d421147c06f1b8680602c5bf0Df91A8', + to: '0x881d40237659c251811cec9c364ef91dc08d300c', }, sourceAmount: '1000000000000000000000000000000000000', destinationAmount: '396493201125465', diff --git a/ui/app/helpers/constants/swaps.js b/ui/app/helpers/constants/swaps.js index bea6cb564..f9ccc5a78 100644 --- a/ui/app/helpers/constants/swaps.js +++ b/ui/app/helpers/constants/swaps.js @@ -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'