Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Fix outdated contract addresses #234

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ await st1inch.deposit(ether('100'), time.duration.days('1'));
| Repository | [limit-order-settlement](https://github.com/1inch/limit-order-settlement/) |
| --- | --- |
| Contract | PowerPod.sol |
| Contract address | 0x9A0C8Ff858d273f57072D714bca7411D717501D7 |
| Contract address | 0xAccfAc2339e16DC80c50d2fa81b5c2B049B4f947 |
| Methods | addPod(address pod) |
| Description | Register pod usage for the tx sender. Needed for
• Resolvers to enable resolver’s and delegated staking power usage for whitelisting
Expand Down Expand Up @@ -72,7 +72,7 @@ await delegation.register('resolver token share', 'RTS');
| Repository | [limit-order-settlement](https://github.com/1inch/limit-order-settlement/) |
| --- | --- |
| Contract | PowerPod.sol |
| Contract address | 0xDAf782667d98d5069eE7ba139932945C4D08fDE9 |
| Contract address | 0xAccfAc2339e16DC80c50d2fa81b5c2B049B4f947 |
| Methods | delegate(address delegatee) |
| Description | delegate(address delegatee) |

Expand All @@ -86,7 +86,7 @@ await delegation.connect(resolver).delegate(resolver.address);
| Repository | [limit-order-settlement](https://github.com/1inch/limit-order-settlement/) |
| --- | --- |
| Contract | WhitelistRegistry.sol |
| Contract address | 0xcb8308fcB7BC2f84ed1bEa2C016991D34de5cc77 |
| Contract address | 0xF55684BC536487394B423e70567413faB8e45E26 |
| Methods | register() |
| Description | Checks if sender is eligible to be whitelisted and put it into the whitelist sorted by staking power descending |

Expand Down Expand Up @@ -142,4 +142,4 @@ struct Order {
| Contract | Settlement.sol |
| Contract address | 0xA88800CD213dA5Ae406ce248380802BD53b47647 |
| Methods | .settleOrders(bytes calldata data) |
| Description | Settles an order |
| Description | Settles an order |
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { ethers } = require('hardhat');
const inch = await ethers.getContractAt('IERC20', '0x111111111117dc0aa78b770fa6a738034120c302');
const st1inch = await ethers.getContractAt('IERC20', '0x9a0c8ff858d273f57072d714bca7411d717501d7');
const powerPod = await ethers.getContractAt('IERC20', '0xaccfac2339e16dc80c50d2fa81b5c2b049b4f947');
const whitelist = await ethers.getContractAt('WhitelistRegistry', '0xcb8308fcB7BC2f84ed1bEa2C016991D34de5cc77');
const whitelist = await ethers.getContractAt('WhitelistRegistry', '0xF55684BC536487394B423e70567413faB8e45E26');

const stakeAmount = ether('1000000');
const lockTime = time.duration.years('2');
Expand Down Expand Up @@ -66,4 +66,4 @@ await (await whitelist.connect(resolver).register()).wait();

// Add worker address from which order settlement will be executed
await (await whitelist.connect(resolver).promote(1, worker)).wait();
```
```