Skip to content

Commit d0d5290

Browse files
committed
FIX: move Idle adapter up
1 parent ec9f3a8 commit d0d5290

File tree

1 file changed

+36
-35
lines changed

1 file changed

+36
-35
lines changed

migrations_scripts/1_use_registry_and_add_adapters.js

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,23 @@ module.exports = async (deployer, network, accounts) => {
280280
'protocol-icons.s3.amazonaws.com/dYdX.png',
281281
'0',
282282
]);
283+
await deployer.deploy(IdleAdapter, { from: accounts[0] })
284+
.then(() => {
285+
adapters[4].push(IdleAdapter.address);
286+
tokens[4].push(idleAdapterTokens);
287+
});
288+
protocolNames.push('Idle');
289+
metadata.push([
290+
'Idle',
291+
'Yield aggregator for lending platforms',
292+
'idle.finance',
293+
'protocol-icons.s3.amazonaws.com/idle.png',
294+
'0',
295+
]);
283296
await deployer.deploy(IearnAdapter, { from: accounts[0] })
284297
.then(() => {
285-
adapters[4].push(IearnAdapter.address);
286-
tokens[4].push(iearn2AdapterTokens);
298+
adapters[5].push(IearnAdapter.address);
299+
tokens[5].push(iearn2AdapterTokens);
287300
});
288301
protocolNames.push('iearn.finance (v2)');
289302
metadata.push([
@@ -295,8 +308,8 @@ module.exports = async (deployer, network, accounts) => {
295308
]);
296309
await deployer.deploy(IearnAdapter, { from: accounts[0] })
297310
.then(() => {
298-
adapters[5].push(IearnAdapter.address);
299-
tokens[5].push(iearn3AdapterTokens);
311+
adapters[6].push(IearnAdapter.address);
312+
tokens[6].push(iearn3AdapterTokens);
300313
});
301314
protocolNames.push('iearn.finance (v3)');
302315
metadata.push([
@@ -308,8 +321,8 @@ module.exports = async (deployer, network, accounts) => {
308321
]);
309322
await deployer.deploy(ChaiAdapter, { from: accounts[0] })
310323
.then(() => {
311-
adapters[6].push(ChaiAdapter.address);
312-
tokens[6].push(chaiAdapterTokens);
324+
adapters[7].push(ChaiAdapter.address);
325+
tokens[7].push(chaiAdapterTokens);
313326
});
314327
protocolNames.push('Chai');
315328
metadata.push([
@@ -321,8 +334,8 @@ module.exports = async (deployer, network, accounts) => {
321334
]);
322335
await deployer.deploy(DSRAdapter, { from: accounts[0] })
323336
.then(() => {
324-
adapters[7].push(DSRAdapter.address);
325-
tokens[7].push(dsrAdapterTokens);
337+
adapters[8].push(DSRAdapter.address);
338+
tokens[8].push(dsrAdapterTokens);
326339
});
327340
protocolNames.push('Dai Savings Rate');
328341
metadata.push([
@@ -334,13 +347,13 @@ module.exports = async (deployer, network, accounts) => {
334347
]);
335348
await deployer.deploy(MCDAssetAdapter, { from: accounts[0] })
336349
.then(() => {
337-
adapters[8].push(MCDAssetAdapter.address);
338-
tokens[8].push(mcdAssetAdapterTokens);
350+
adapters[9].push(MCDAssetAdapter.address);
351+
tokens[9].push(mcdAssetAdapterTokens);
339352
});
340353
await deployer.deploy(MCDDebtAdapter, { from: accounts[0] })
341354
.then(() => {
342-
adapters[8].push(MCDDebtAdapter.address);
343-
tokens[8].push(mcdDebtAdapterTokens);
355+
adapters[9].push(MCDDebtAdapter.address);
356+
tokens[9].push(mcdDebtAdapterTokens);
344357
});
345358
protocolNames.push('Multi-Collateral Dai');
346359
metadata.push([
@@ -352,8 +365,8 @@ module.exports = async (deployer, network, accounts) => {
352365
]);
353366
await deployer.deploy(PoolTogetherAdapter, { from: accounts[0] })
354367
.then(() => {
355-
adapters[9].push(PoolTogetherAdapter.address);
356-
tokens[9].push(poolTogetherAdapterTokens);
368+
adapters[10].push(PoolTogetherAdapter.address);
369+
tokens[10].push(poolTogetherAdapterTokens);
357370
});
358371
protocolNames.push('PoolTogether');
359372
metadata.push([
@@ -365,13 +378,13 @@ module.exports = async (deployer, network, accounts) => {
365378
]);
366379
await deployer.deploy(SynthetixAssetAdapter, { from: accounts[0] })
367380
.then(() => {
368-
adapters[10].push(SynthetixAssetAdapter.address);
369-
tokens[10].push(synthetixAssetAdapterTokens);
381+
adapters[11].push(SynthetixAssetAdapter.address);
382+
tokens[11].push(synthetixAssetAdapterTokens);
370383
});
371384
await deployer.deploy(SynthetixDebtAdapter, { from: accounts[0] })
372385
.then(() => {
373-
adapters[10].push(SynthetixDebtAdapter.address);
374-
tokens[10].push(synthetixDebtAdapterTokens);
386+
adapters[11].push(SynthetixDebtAdapter.address);
387+
tokens[11].push(synthetixDebtAdapterTokens);
375388
});
376389
protocolNames.push('Synthetix');
377390
metadata.push([
@@ -383,8 +396,8 @@ module.exports = async (deployer, network, accounts) => {
383396
]);
384397
await deployer.deploy(UniswapV1Adapter, { from: accounts[0] })
385398
.then(() => {
386-
adapters[11].push(UniswapV1Adapter.address);
387-
tokens[11].push(uniswapV1AdapterTokens);
399+
adapters[12].push(UniswapV1Adapter.address);
400+
tokens[12].push(uniswapV1AdapterTokens);
388401
});
389402
protocolNames.push('Uniswap V1');
390403
metadata.push([
@@ -396,8 +409,8 @@ module.exports = async (deployer, network, accounts) => {
396409
]);
397410
await deployer.deploy(ZrxAdapter, { from: accounts[0] })
398411
.then(() => {
399-
adapters[12].push(ZrxAdapter.address);
400-
tokens[12].push(zrxAdapterTokens);
412+
adapters[13].push(ZrxAdapter.address);
413+
tokens[13].push(zrxAdapterTokens);
401414
});
402415
protocolNames.push('0x Staking');
403416
metadata.push([
@@ -407,19 +420,7 @@ module.exports = async (deployer, network, accounts) => {
407420
'protocol-icons.s3.amazonaws.com/0x-staking.png',
408421
'0',
409422
]);
410-
await deployer.deploy(IdleAdapter, { from: accounts[0] })
411-
.then(() => {
412-
adapters[13].push(IdleAdapter.address);
413-
tokens[13].push(idleAdapterTokens);
414-
});
415-
protocolNames.push('Idle');
416-
metadata.push([
417-
'Idle',
418-
'Yield aggregator for lending platforms',
419-
'idle.finance',
420-
'protocol-icons.s3.amazonaws.com/idle.png',
421-
'0',
422-
]);
423+
423424
await deployer.deploy(ERC20TokenAdapter, { from: accounts[0] })
424425
.then(() => {
425426
tokenAdapters.push(

0 commit comments

Comments
 (0)