Skip to content

Commit

Permalink
chore(sc-954): remove weth unwrapper (#280)
Browse files Browse the repository at this point in the history
* chore: move files to extension, and add some comments

* chore: AmountCalculator to libraries to have consistent order structure

* chore: apply suggestions on comments from code review

Co-authored-by: zZoMROT <[email protected]>

* chore: Apply suggestions on comments from code review

* chore: remove WethUnwrapper.sol and deploy-helpers.js. Wrapper functionality is embedded into the TakerTraits

* chore: remove WethUnwrapper.sol and deploy-helpers.js. Wrapper functionality is embedded into the TakerTraits

* chore: undo changes in comments, done by mistake

---------

Co-authored-by: zZoMROT <[email protected]>
  • Loading branch information
artall64 and zZoMROT authored Oct 16, 2023
1 parent 97eff07 commit d02b865
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions deploy/deploy-helpers.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
const hre = require('hardhat');
const { getChainId } = hre;
const { constants } = require('@1inch/solidity-utils');

const WETH = {
1: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', // Mainnet
56: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', // BSC
137: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', // Matic
42161: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', // Arbitrum
10: '0x4200000000000000000000000000000000000006', // Optimistic
43114: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', // Avalanche
100: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', // xDAI
250: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83', // FTM
1313161554: '0xC9BdeEd33CD01541e1eeD10f90519d2C06Fe3feB', // Aurora
8217: '0xe4f05a66ec68b54a58b17c22107b02e0232cc817', // Klaytn
324: '0x5aea5775959fbc2557cc8789bc1bf90a239d9a91', // ZKSync
8453: '0x4200000000000000000000000000000000000006', // Base
31337: constants.ZERO_ADDRESS, // Hardhat
};

module.exports = async ({ getNamedAccounts, deployments }) => {
console.log('running deploy script');
Expand All @@ -26,20 +9,6 @@ module.exports = async ({ getNamedAccounts, deployments }) => {
const { deploy } = deployments;
const { deployer } = await getNamedAccounts();

const wethUnwrapper = await deploy('WethUnwrapper', {
from: deployer,
args: [WETH[chainId]],
});

console.log('WethUnwrapper deployed to:', wethUnwrapper.address);

if (await getChainId() !== '31337') {
await hre.run('verify:verify', {
address: wethUnwrapper.address,
constructorArguments: [WETH[chainId]],
});
}

const seriesNonceManager = await deploy('SeriesNonceManager', {
from: deployer,
});
Expand Down

0 comments on commit d02b865

Please sign in to comment.