Skip to content

Update supply caps on Optimism, Polygon and Unichain markets #1124

Open
MishaShWoof wants to merge 62 commits into
compound-finance:mainfrom
woof-software:woof-software/change-supply-caps-on-l2-networks-2
Open

Update supply caps on Optimism, Polygon and Unichain markets #1124
MishaShWoof wants to merge 62 commits into
compound-finance:mainfrom
woof-software:woof-software/change-supply-caps-on-l2-networks-2

Conversation

@MishaShWoof
Copy link
Copy Markdown
Contributor

No description provided.

const unichainUsdcUniUpdateSupplyCapCalldata = utils.defaultAbiCoder.encode(['address', 'address', 'uint128'], [cometConfig.Unichain.USDC.address, unichainMETH.address, exp(supplyCapConfig.Unichain.USDC.UNI.newCap, supplyCapConfig.Unichain.USDC.UNI.decimals)]);
const unichainUsdcDeployAndUpgradeToCalldata = utils.defaultAbiCoder.encode(['address', 'address'], [unichainConfigurator.address, cometConfig.Unichain.USDC.address]);

const unichainWethUniETHUpdateSupplyCapCalldata = utils.defaultAbiCoder.encode(['address', 'address', 'uint128'], [cometConfig.Unichain.WETH.address, unichainEzETH.address, exp(supplyCapConfig.Unichain.WETH.UNI.newCap, supplyCapConfig.Unichain.WETH.UNI.decimals)]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unichainEzETH

const unichainUsdcDeployAndUpgradeToCalldata = utils.defaultAbiCoder.encode(['address', 'address'], [unichainConfigurator.address, cometConfig.Unichain.USDC.address]);

const unichainWethUniETHUpdateSupplyCapCalldata = utils.defaultAbiCoder.encode(['address', 'address', 'uint128'], [cometConfig.Unichain.WETH.address, unichainEzETH.address, exp(supplyCapConfig.Unichain.WETH.UNI.newCap, supplyCapConfig.Unichain.WETH.UNI.decimals)]);
const unichainWethEzEthUpdateSupplyCapCalldata = utils.defaultAbiCoder.encode(['address', 'address', 'uint128'], [cometConfig.Unichain.WETH.address, unichainMETH.address, exp(supplyCapConfig.Unichain.WETH.ezETH.newCap, supplyCapConfig.Unichain.WETH.ezETH.decimals)]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unichainMETH

bridgeReceiver: unichainBridgeReceiver,
configurator: unichainConfigurator,
cometAdmin: unichainCometAdmin,
UNI: unichainMETH,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unichainMETH

weETH: unichainWeETH,
} = await unichainDm.getContracts();

const unichainUsdcUniUpdateSupplyCapCalldata = utils.defaultAbiCoder.encode(['address', 'address', 'uint128'], [cometConfig.Unichain.USDC.address, unichainMETH.address, exp(supplyCapConfig.Unichain.USDC.UNI.newCap, supplyCapConfig.Unichain.USDC.UNI.decimals)]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unichainMETH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants