Skip to content

Commit ffbdd22

Browse files
committed
Fix migration script
1 parent 4d2a44d commit ffbdd22

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

deployments/linea-goerli/usdc/migrations/1686918613_configurate_and_ens.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ENSResolverAddress = '0x19c2d5D0f035563344dBB7bE5fD09c8dad62b001';
99
const ENSSubdomainLabel = 'v3-additional-grants';
1010
const ENSSubdomain = `${ENSSubdomainLabel}.${ENSName}`;
1111
const ENSTextRecordKey = 'v3-official-markets';
12-
const lineaCOMPAddress = '0xab3134fa5edfb3dc64aa790e8bb6448117d18fe9';
12+
const lineaCOMPAddress = '0xaB3134Fa5EDfB3Dc64Aa790E8Bb6448117d18fe9';
1313

1414
export default migration('1686918613_configurate_and_ens', {
1515
prepare: async (deploymentManager: DeploymentManager) => {
@@ -141,10 +141,6 @@ export default migration('1686918613_configurate_and_ens', {
141141
trace(`Created proposal ${proposalId}.`);
142142
},
143143

144-
async enacted(deploymentManager: DeploymentManager): Promise<boolean> {
145-
return true;
146-
},
147-
148144
async verify(
149145
deploymentManager: DeploymentManager,
150146
govDeploymentManager: DeploymentManager,
@@ -160,8 +156,10 @@ export default migration('1686918613_configurate_and_ens', {
160156
expect(stateChanges).to.deep.equal({
161157
baseTrackingSupplySpeed: exp(34.74 / 86400, 15, 18),
162158
baseTrackingBorrowSpeed: exp(34.74 / 86400, 15, 18),
163-
baseBorrowMin: exp(1, 6),
159+
baseMinForRewards: exp(1000, 6),
164160
WETH: {
161+
borrowCollateralFactor: exp(0.775, 18),
162+
liquidationFactor: exp(0.95, 18),
165163
supplyCap: exp(1000, 18)
166164
}
167165
});
@@ -215,6 +213,16 @@ export default migration('1686918613_configurate_and_ens', {
215213
cometAddress: '0x1d573274E19174260c5aCE3f2251598959d24456'
216214
}
217215
],
216+
84531: [
217+
{
218+
baseSymbol: 'USDC',
219+
cometAddress: '0xe78Fc55c884704F9485EDa042fb91BfE16fD55c1'
220+
},
221+
{
222+
baseSymbol: 'WETH',
223+
cometAddress: '0xED94f3052638620fE226a9661ead6a39C2a265bE'
224+
}
225+
],
218226
59140: [
219227
{
220228
baseSymbol: 'USDC',

deployments/linea-goerli/usdc/relations.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ export default {
55
governor: {
66
artifact: 'contracts/bridges/linea/LineaBridgeReceiver.sol:LineaBridgeReceiver'
77
},
8-
// WETH
9-
'0x2C1b868d6596a18e32E61B901E4060C872647b6C': {
8+
// COMP
9+
'0xab3134fa5edfb3dc64aa790e8bb6448117d18fe9': {
1010
artifact: 'contracts/ERC20.sol:ERC20',
11-
delegates: {
12-
field: {
13-
slot: '0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc'
14-
}
15-
}
1611
},
1712
l2MessageService: {
1813
delegates: {

0 commit comments

Comments
 (0)