diff --git a/deployments/goerli/usdt/configuration.json b/deployments/goerli/usdt/configuration.json index 7ae80e0ef..da39f77ec 100644 --- a/deployments/goerli/usdt/configuration.json +++ b/deployments/goerli/usdt/configuration.json @@ -2,7 +2,6 @@ "name": "Compound USDT", "symbol": "cUSDTv3", "baseToken": "USDT", - "baseTokenAddress": "0x79C950C7446B234a6Ad53B908fBF342b01c4d446", "baseTokenPriceFeed": "0xAb5c49580294Aff77670F839ea425f5b78ab3Ae7", "borrowMin": "10e6", "governor": "0x8Fa336EB4bF58Cfc508dEA1B0aeC7336f55B1399", diff --git a/deployments/goerli/usdt/deploy.ts b/deployments/goerli/usdt/deploy.ts index 89c7e19fc..de00a82e3 100644 --- a/deployments/goerli/usdt/deploy.ts +++ b/deployments/goerli/usdt/deploy.ts @@ -1,12 +1,18 @@ import { Deployed, DeploymentManager } from '../../../plugins/deployment_manager'; import { debug, DeploySpec, deployComet, exp, sameAddress, wait } from '../../../src/deploy'; +const clone = { + usdt: '0xdAC17F958D2ee523a2206206994597C13D831ec7', +}; + export default async function deploy(deploymentManager: DeploymentManager, deploySpec: DeploySpec): Promise { const ethers = deploymentManager.hre.ethers; const signer = await deploymentManager.getSigner(); + // Clone/fork USDT from mainnet which is non-standard erc20 to testnet + const USDT = await deploymentManager.clone('USDT', clone.usdt, [100_000_000_000_000, 'Tether USD', 'USDT', 6]); + // Declare existing assets as aliases - const USDT = await deploymentManager.existing('USDT', '0x79C950C7446B234a6Ad53B908fBF342b01c4d446', 'goerli'); const COMP = await deploymentManager.existing('COMP', '0x3587b2F7E0E2D6166d6C14230e7Fe160252B0ba4', 'goerli'); const WBTC = await deploymentManager.existing('WBTC', '0xAAD4992D949f9214458594dF92B44165Fb84dC19', 'goerli'); const WETH = await deploymentManager.existing('WETH', '0x42a71137C09AE83D8d05974960fd607d40033499', 'goerli');