From c7118a8be3c152a75bea11242a001cfa495774a3 Mon Sep 17 00:00:00 2001 From: iamsahu Date: Wed, 25 Jan 2023 14:38:52 +0530 Subject: [PATCH] feat: draft --- YPP-0097.md | 331 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 331 insertions(+) create mode 100644 YPP-0097.md diff --git a/YPP-0097.md b/YPP-0097.md new file mode 100644 index 0000000..c6e019a --- /dev/null +++ b/YPP-0097.md @@ -0,0 +1,331 @@ +# Proposal + +Enable `OSQTH` as a collateral. + +# Background + +This would allow user to borrow DAI/USDC/ETH against `OSQTH` as collateral. + +# Details + +Following steps would be taken to get `OSQTH` as a collateral: + +1. Deploy joins for the strategy assets (no need for governance approval) +2. Governance Proposal + 1. Update UniswapOracle Sources + 2. Update CompositeOracle Sources + 3. Orchestrate the new join + 4. Add `OSQTH` tokens as Assets + 5. Make `OSQTH` token as ilk + 6. Add `OSQTH` tokens as ilks in series + +Here is the configuration + +``` +export const contractDeployments: ContractDeployment[] = [ + { + addressFile: 'newJoins.json', + name: OSQTH, + contract: 'Join', + args: [() => assets.getOrThrow(OSQTH)!], + }, +] + +export const ilkToETH: Ilk = { + baseId: ETH, + ilkId: osqth.assetId, + asset: osqth, + collateralization: { + baseId: ETH, + ilkId: osqth.assetId, + oracle: protocol().getOrThrow(UNISWAP)!, + ratio: 1400000, + }, + debtLimits: { + baseId: ETH, + ilkId: osqth.assetId, + line: 50, + dust: 1, + dec: 18, + }, + auctionLineAndLimit: { + baseId: ETH, + ilkId: osqth.assetId, + duration: 3600, + vaultProportion: parseUnits('0.5'), + collateralProportion: parseUnits('0.75'), // 105 / 140 + max: parseUnits('1000'), + }, +} + +export const ilkToDAI: Ilk = { + baseId: DAI, + ilkId: osqth.assetId, + asset: osqth, + collateralization: { + baseId: DAI, + ilkId: osqth.assetId, + oracle: protocol().getOrThrow(COMPOSITE)!, + ratio: 1670000, + }, + debtLimits: { + baseId: DAI, + ilkId: osqth.assetId, + line: 25000, + dust: 100, + dec: 18, + }, + auctionLineAndLimit: { + baseId: DAI, + ilkId: osqth.assetId, + duration: 3600, + vaultProportion: parseUnits('0.5'), + collateralProportion: parseUnits('0.62874251'), // 105 / 167 + max: parseUnits('1000'), + }, +} + +export const ilkToUSDC: Ilk = { + baseId: USDC, + ilkId: osqth.assetId, + asset: osqth, + collateralization: { + baseId: USDC, + ilkId: osqth.assetId, + oracle: protocol().getOrThrow(COMPOSITE)!, + ratio: 1670000, + }, + debtLimits: { + baseId: USDC, + ilkId: osqth.assetId, + line: 25000, + dust: 100, + dec: 6, + }, + auctionLineAndLimit: { + baseId: USDC, + ilkId: osqth.assetId, + duration: 3600, + vaultProportion: parseUnits('0.5'), + collateralProportion: parseUnits('0.62874251'), // 105 / 167 + max: parseUnits('1000'), + }, +} + +export const ilks: Ilk[] = [ilkToETH, ilkToDAI, ilkToUSDC] + +export const uniswapsources: [string, string, string, number][] = [ + [ETH, OSQTH, '0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C', 10], +] + +export const oracleSources: OracleSource[] = [ + { + baseId: ETH, + baseAddress: assets.getOrThrow(ETH)!, + quoteId: OSQTH, + quoteAddress: assets.getOrThrow(OSQTH)!, + sourceAddress: protocol().getOrThrow(UNISWAP)!, + }, +] + +export const oraclePaths: OraclePath[] = [ + { + baseId: OSQTH, + quoteId: DAI, + path: [ETH], + }, + { + baseId: OSQTH, + quoteId: USDC, + path: [ETH], + }, +] + +export const ethSeries: Series[] = [ + { + seriesId: FYETH2303, + fyToken: { assetId: FYETH2303, address: fyTokens.getOrThrow(FYETH2303)! }, + chiOracle: '', + pool: osqth, + ilks: [ilkToETH], + }, + { + seriesId: FYETH2306, + fyToken: { assetId: FYETH2306, address: fyTokens.getOrThrow(FYETH2306)! }, + chiOracle: '', + pool: osqth, + ilks: [ilkToETH], + }, +] + +export const daiSeries: Series[] = [ + { + seriesId: FYDAI2303, + fyToken: { assetId: FYDAI2303, address: fyTokens.getOrThrow(FYDAI2303)! }, + chiOracle: '', + pool: osqth, + ilks: [ilkToDAI], + }, + { + seriesId: FYDAI2306, + fyToken: { assetId: FYDAI2306, address: fyTokens.getOrThrow(FYDAI2306)! }, + chiOracle: '', + pool: osqth, + ilks: [ilkToDAI], + }, +] + +export const usdcSeries: Series[] = [ + { + seriesId: FYUSDC2303, + fyToken: { assetId: FYUSDC2303, address: fyTokens.getOrThrow(FYUSDC2303)! }, + chiOracle: '', + pool: osqth, + ilks: [ilkToUSDC], + }, + { + seriesId: FYUSDC2306, + fyToken: { assetId: FYUSDC2306, address: fyTokens.getOrThrow(FYUSDC2306)! }, + chiOracle: '', + pool: osqth, + ilks: [ilkToUSDC], + }, +] + +export const newSeries: Series[] = [...ethSeries, ...daiSeries, ...usdcSeries] + +``` + +# Testing + +The change has been deployed on a mainnet fork with the following output. + +``` ++ npx hardhat run --network localhost ./scripts/governance/add/addCollateral/addCompositeCollateral/uniswap/../../../../../../shared/deploy.ts +Impersonated 0xC7aE076086623ecEA2450e364C838916a043F9a8 +Deploying 0x333900000000 Join with 0xf1B99e3E573A1a9C5E6B2Ce818b617F0E664E86B +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification Join, IERC3156FlashBorrower, IERC3156FlashLender, AccessControl, IERC20, RevertMsgExtractor, TransferHelper, WMul, IJoin, CastU256U128, IJoinFactory, +0x333900000000 Join deployed at 0xbe18A1B61ceaF59aEB6A9bC81AB4FB87D56Ba167 +0x333900000000.grantRoles(ROOT, timelock) ++ npx hardhat run --network localhost ./scripts/governance/add/addCollateral/addCompositeCollateral/uniswap/addOSQTH.ts +Impersonated 0xC7aE076086623ecEA2450e364C838916a043F9a8 +Setting up 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C as the source for 0x303000000000/0x333900000000 at 0x358538ea4F52Ac15C551f88C701696f6d9b38F3C +CompositeMultiOracle: pair: ETH/0x333900000000 set to 0x358538ea4F52Ac15C551f88C701696f6d9b38F3C +path: 0x333900000000/DAI -> 0x303000000000 +path: 0x333900000000/USDC -> 0x303000000000 +0xbe18A1B61ceaF59aEB6A9bC81AB4FB87D56Ba167 grantRole(ROOT 0x82375994C79e902286D347C9eDE644eA12659FCC) +join.grantRoles(gov, timelock) +Using asset at 0xf1B99e3E573A1a9C5E6B2Ce818b617F0E664E86B +Using join at 0xbe18A1B61ceaF59aEB6A9bC81AB4FB87D56Ba167 +Make asset: 0x333900000000: 0xf1B99e3E573A1a9C5E6B2Ce818b617F0E664E86B, +cloak.add(ladle join and exit 0x333900000000) +Adding 0x333900000000 join to Ladle using 0xbe18A1B61ceaF59aEB6A9bC81AB4FB87D56Ba167 +Spot oracle for 0x303000000000/0x333900000000 set to 0x358538ea4F52Ac15C551f88C701696f6d9b38F3C with ratio 1330000 +Witch#setLineAndLimit(ilkId: 0x333900000000, baseId: ETH, duration: 3600 seconds, vaultProportion: 0.5, collateralProportion: 0.84, max: 1000.0) +join(0x333900000000).grantRole(exit, witch) +cloak.add(witch exit 0x333900000000) +Spot oracle for 0x303100000000/0x333900000000 set to 0xA81414a544D0bd8a28257F4038D3D24B08Dd9Bb4 with ratio 1670000 +Witch#setLineAndLimit(ilkId: 0x333900000000, baseId: DAI, duration: 3600 seconds, vaultProportion: 0.5, collateralProportion: 0.75, max: 1000.0) +join(0x333900000000).grantRole(exit, witch) +cloak.add(witch exit 0x333900000000) +Spot oracle for 0x303200000000/0x333900000000 set to 0xA81414a544D0bd8a28257F4038D3D24B08Dd9Bb4 with ratio 1670000 +Witch#setLineAndLimit(ilkId: 0x333900000000, baseId: USDC, duration: 3600 seconds, vaultProportion: 0.5, collateralProportion: 0.75, max: 1000.0) +join(0x333900000000).grantRole(exit, witch) +cloak.add(witch exit 0x333900000000) +addIlks FYETH2303: 0x333900000000 +addIlks FYETH2306: 0x333900000000 +addIlks FYDAI2303: 0x333900000000 +addIlks FYDAI2306: 0x333900000000 +addIlks FYUSDC2303: 0x333900000000 +addIlks FYUSDC2306: 0x333900000000 +Impersonated 0xC7aE076086623ecEA2450e364C838916a043F9a8 +Proposal: 0xbc176808a083b8fa3cc6d9bcdecab8a787e429c970fb840d49654444989b69a9 +Proposing +Developer: 0xC7aE076086623ecEA2450e364C838916a043F9a8 + +Calldata: +0xca02753a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001b00000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000460000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000000000000000000000000000000780000000000000000000000000000000000000000000000000000000000000084000000000000000000000000000000000000000000000000000000000000009400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000b200000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000d400000000000000000000000000000000000000000000000000000000000000e400000000000000000000000000000000000000000000000000000000000000f6000000000000000000000000000000000000000000000000000000000000010a000000000000000000000000000000000000000000000000000000000000011600000000000000000000000000000000000000000000000000000000000001280000000000000000000000000000000000000000000000000000000000000138000000000000000000000000000000000000000000000000000000000000014a000000000000000000000000000000000000000000000000000000000000015e000000000000000000000000000000000000000000000000000000000000016e0000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000019400000000000000000000000000000000000000000000000000000000000001a400000000000000000000000000000000000000000000000000000000000001b400000000000000000000000000000000000000000000000000000000000001c400000000000000000000000000000000000000000000000000000000000001d400000000000000000000000000000000000000000000000000000000000001e40000000000000000000000000358538ea4f52ac15c551f88c701696f6d9b38f3c00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084e46504183030000000000000000000000000000000000000000000000000000000000000333900000000000000000000000000000000000000000000000000000000000000000000000000000000000082c427adfdf2d245ec51d8046b41c4ee87f0d29c000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000a81414a544d0bd8a28257f4038d3d24b08dd9bb40000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000006492b45d9c30300000000000000000000000000000000000000000000000000000000000003339000000000000000000000000000000000000000000000000000000000000000000000000000000000000358538ea4f52ac15c551f88c701696f6d9b38f3c00000000000000000000000000000000000000000000000000000000000000000000000000000000a81414a544d0bd8a28257f4038d3d24b08dd9bb4000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a460509e5f3339000000000000000000000000000000000000000000000000000000000000303100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001303000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a81414a544d0bd8a28257f4038d3d24b08dd9bb4000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a460509e5f3339000000000000000000000000000000000000000000000000000000000000303200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000001303000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba16700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044de02cde7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082375994c79e902286d347c9ede644ea12659fcc00000000000000000000000000000000000000000000000000000000000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba16700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000084effae35300000000000000000000000000000000000000000000000000000000000000400000000000000000000000003b870db67a45611cf4723d44487eaf398fac51e30000000000000000000000000000000000000000000000000000000000000001f06c2dfc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca86700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044e665f9e43339000000000000000000000000000000000000000000000000000000000000000000000000000000000000f1b99e3e573a1a9c5e6b2ce818b617f0e664e86b00000000000000000000000000000000000000000000000000000000000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba167000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a4effae35300000000000000000000000000000000000000000000000000000000000000400000000000000000000000006cb18ff2a33e981d1e38a663ca056c0a5265066a0000000000000000000000000000000000000000000000000000000000000002ceae3abd0000000000000000000000000000000000000000000000000000000012e5ff77000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082375994c79e902286d347c9ede644ea12659fcc000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000e4f92bcb0d0000000000000000000000006cb18ff2a33e981d1e38a663ca056c0a5265066a00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000002000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba167ceae3abd00000000000000000000000000000000000000000000000000000000000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba16712e5ff7700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006cb18ff2a33e981d1e38a663ca056c0a5265066a0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000004449c29d2b3339000000000000000000000000000000000000000000000000000000000000000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba16700000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca867000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000848ef6bdfa30300000000000000000000000000000000000000000000000000000000000003339000000000000000000000000000000000000000000000000000000000000000000000000000000000000358538ea4f52ac15c551f88c701696f6d9b38f3c0000000000000000000000000000000000000000000000000000000000144b5000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca867000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a4d3fc152b303000000000000000000000000000000000000000000000000000000000000033390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000008d2f5c96bb1f6be04b49bcd869d5af01db4c400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c43fa3c322333900000000000000000000000000000000000000000000000000000000000030300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000ba8478cab54000000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba16700000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044de02cde712e5ff770000000000000000000000000000000000000000000000000000000000000000000000000000000008d2f5c96bb1f6be04b49bcd869d5af01db4c4000000000000000000000000000000000000000000000000000000000000000000000000000000000082375994c79e902286d347c9ede644ea12659fcc000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a4f92bcb0d00000000000000000000000008d2f5c96bb1f6be04b49bcd869d5af01db4c40000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000be18a1b61ceaf59aeb6a9bc81ab4fb87d56ba16712e5ff770000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca867000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000848ef6bdfa30310000000000000000000000000000000000000000000000000000000000003339000000000000000000000000000000000000000000000000000000000000000000000000000000000000a81414a544d0bd8a28257f4038d3d24b08dd9bb40000000000000000000000000000000000000000000000000000000000197b7000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca867000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a4d3fc152b30310000000000000000000000000000000000000000000000000000000000003339000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003d09000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000000000000000000008d2f5c96bb1f6be04b49bcd869d5af01db4c400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c43fa3c322333900000000000000000000000000000000000000000000000000000000000030310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000a688906bd8b000000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca867000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000848ef6bdfa30320000000000000000000000000000000000000000000000000000000000003339000000000000000000000000000000000000000000000000000000000000000000000000000000000000a81414a544d0bd8a28257f4038d3d24b08dd9bb40000000000000000000000000000000000000000000000000000000000197b7000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca867000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a4d3fc152b30320000000000000000000000000000000000000000000000000000000000003339000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003d09000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000008d2f5c96bb1f6be04b49bcd869d5af01db4c400000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c43fa3c322333900000000000000000000000000000000000000000000000000000000000030320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e1000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000a688906bd8b000000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca8670000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008453eecb77303030390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001333900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca8670000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008453eecb770030ff00028b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001333900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca8670000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008453eecb77303130390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001333900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca8670000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008453eecb770031ff00028b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001333900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca8670000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008453eecb77303230390000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001333900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c88191f8cb8e6d4a668b047c1c8503432c3ca8670000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008453eecb770032ff00028b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001333900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +Proposed 0xbc176808a083b8fa3cc6d9bcdecab8a787e429c970fb840d49654444989b69a9 ++ npx hardhat run --network localhost ./scripts/governance/add/addCollateral/addCompositeCollateral/uniswap/../../../../../../shared/approve.ts +Impersonated 0xd659565b84bcfcb23b02ee13e46cb51429f4558a +Proposal: 0xbc176808a083b8fa3cc6d9bcdecab8a787e429c970fb840d49654444989b69a9 +Approving +Approved: 0xbc176808a083b8fa3cc6d9bcdecab8a787e429c970fb840d49654444989b69a9 +advancing time by 172800 seconds (2 days) to 1674982074 ++ npx hardhat run --network localhost ./scripts/governance/add/addCollateral/addCompositeCollateral/uniswap/../../../../../../shared/execute.ts +Impersonated 0xC7aE076086623ecEA2450e364C838916a043F9a8 +Proposal: 0xbc176808a083b8fa3cc6d9bcdecab8a787e429c970fb840d49654444989b69a9 +Executing +Estimated gas: 1341058 - ETH Balance: 1.0 +Executed 0xbc176808a083b8fa3cc6d9bcdecab8a787e429c970fb840d49654444989b69a9 +TxHash: 0x0a42f7f74b247327f7a73cdff701f7667d9ff3673638818723e86b17d73c3931 ++ npx hardhat run --network localhost ./scripts/governance/add/addCollateral/addCompositeCollateral/uniswap/../../../../../../shared/standardBorrowingTest.ts +Impersonated 0xC7aE076086623ecEA2450e364C838916a043F9a8 +Impersonated 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C +series: 0x303030390000 +ilk.ilkId: 0x333900000000 +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification FYToken, IERC3156FlashBorrower, IERC3156FlashLender, AccessControl, IERC20, IERC20Metadata, AddressStringUtil, SafeERC20Namer, ERC20, IERC2612, ERC20Permit, WDiv, WDivUp, WMul, CastU256U128, CastU256U32, IOracle, IERC5095, IJoin, IFYToken, Constants, +vault: 0xe402ac268ba5a3756eae1830 +posting 22997540203918418364 ilk.ilkId out of 10288843639101218958396 +borrowing 1000000000000000000 FYETH2303 +posted and borrowed +repaying 1000000000000000000 FYETH2303 and withdrawing 22997540203918418364 ilk.ilkId +repaid and withdrawn +Impersonated 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C +series: 0x0030FF00028B +ilk.ilkId: 0x333900000000 +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification FYToken, IERC3156FlashBorrower, IERC3156FlashLender, WMul, IERC2612, IERC20, IERC20Metadata, ERC20, ERC20Permit, WDiv, AccessControl, AddressStringUtil, SafeERC20Namer, CastU256U128, CastU256U32, IOracle, IERC5095, IJoin, IFYToken, WDivUp, Constants, +vault: 0x44073899c968dfbefc76ec8c +posting 22997540203918418364 ilk.ilkId out of 10288843639101218958396 +borrowing 1000000000000000000 FYETH2306 +posted and borrowed +repaying 1000000000000000000 FYETH2306 and withdrawing 22997540203918418364 ilk.ilkId +repaid and withdrawn +Impersonated 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C +series: 0x303130390000 +ilk.ilkId: 0x333900000000 +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification FYToken, IERC3156FlashBorrower, IERC3156FlashLender, AccessControl, IERC20, IERC20Metadata, AddressStringUtil, SafeERC20Namer, WDiv, IOracle, IERC5095, IJoin, IFYToken, WMul, CastU256U32, WDivUp, ERC20, IERC2612, ERC20Permit, CastU256U128, Constants, +vault: 0x0837521636dede35fc1920ec +posting 18682786485167969542 ilk.ilkId out of 10288843639101218958396 +borrowing 1000000000000000000000 FYDAI2303 +posted and borrowed +repaying 1000000000000000000000 FYDAI2303 and withdrawing 18682786485167969542 ilk.ilkId +repaid and withdrawn +Impersonated 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C +series: 0x0031FF00028B +ilk.ilkId: 0x333900000000 +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification FYToken, IERC3156FlashBorrower, IERC3156FlashLender, IERC20, IERC20Metadata, AddressStringUtil, SafeERC20Namer, AccessControl, IERC2612, ERC20, ERC20Permit, WMul, WDiv, IOracle, IERC5095, IJoin, IFYToken, WDivUp, CastU256U128, CastU256U32, Constants, +vault: 0x368fac3d3f9a1bbe2bc66262 +posting 18682786485167969542 ilk.ilkId out of 10288843639101218958396 +borrowing 1000000000000000000000 FYDAI2306 +posted and borrowed +repaying 1000000000000000000000 FYDAI2306 and withdrawing 18682786485167969542 ilk.ilkId +repaid and withdrawn +Impersonated 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C +series: 0x303230390000 +ilk.ilkId: 0x333900000000 +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification FYToken, IERC3156FlashBorrower, IERC3156FlashLender, AccessControl, WMul, IERC20, IERC20Metadata, AddressStringUtil, SafeERC20Namer, ERC20, IERC2612, ERC20Permit, IJoin, IOracle, CastU256U32, WDiv, Constants, IERC5095, IFYToken, WDivUp, CastU256U128, +vault: 0x60bc04f0ceca03990dfce01c +posting 18690355919327837324 ilk.ilkId out of 10288843639101218958396 +borrowing 1000000000 FYUSDC2303 +posted and borrowed +repaying 1000000000 FYUSDC2303 and withdrawing 18690355919327837324 ilk.ilkId +repaid and withdrawn +Impersonated 0x82c427AdFDf2d245Ec51D8046b41c4ee87F0d29C +series: 0x0032FF00028B +ilk.ilkId: 0x333900000000 +hardhat-tenderly: Warning: No new contracts have been verified. + Contract not eligible for verification FYToken, IERC3156FlashBorrower, IERC3156FlashLender, AccessControl, AddressStringUtil, IERC20, IERC20Metadata, SafeERC20Namer, WDivUp, WMul, IJoin, CastU256U32, ERC20, IERC2612, ERC20Permit, IOracle, IERC5095, IFYToken, WDiv, CastU256U128, Constants, +vault: 0xcc5a5bc967cb8c2f428c3f01 +posting 18690355919327837324 ilk.ilkId out of 10288843639101218958396 +borrowing 1000000000 FYUSDC2306 +posted and borrowed +repaying 1000000000 FYUSDC2306 and withdrawing 18690355919327837324 ilk.ilkId +repaid and withdrawn +```