Compare commits
5 Commits
7e47616a61
...
974c70f50b
| Author | SHA1 | Date | |
|---|---|---|---|
| 974c70f50b | |||
| 5e95c1e33d | |||
| 212a4665d4 | |||
| 1cabf01086 | |||
| 515b8f6e02 |
@@ -118,7 +118,7 @@ The `execute()` method is intentionally public. It is expected to revert if any
|
||||
|
||||
# Detailed Technical Overview
|
||||
|
||||
The [review.md](https://github.com/dexorder/contract/blob/main/review.md) file describes the architecture, motivation,
|
||||
The [review.md](https://github.com/dexorder-trade/contract/blob/master/doc/review.md) file describes the architecture, motivation,
|
||||
security issues, implementation details, and more.
|
||||
|
||||
|
||||
|
||||
@@ -20,8 +20,11 @@ contract MirrorEnv {
|
||||
|
||||
// map original token addresses to their mock counterparts
|
||||
mapping(IERC20Metadata=>MockERC20) public tokens;
|
||||
IERC20Metadata[] public tokenKeys;
|
||||
|
||||
// map original pool addresses to their mock counterparts
|
||||
mapping(IUniswapV3Pool=>MockPool) public pools;
|
||||
IUniswapV3Pool[] public poolKeys;
|
||||
|
||||
INonfungiblePositionManager immutable public nfpm;
|
||||
ISwapRouter immutable public swapRouter;
|
||||
@@ -50,6 +53,7 @@ contract MirrorEnv {
|
||||
mock = new MockERC20(info.name, info.symbol, info.decimals);
|
||||
// console2.log('setting tokens[]');
|
||||
tokens[info.addr] = mock;
|
||||
tokenKeys.push() = info.addr;
|
||||
// console2.log('set tokens[]');
|
||||
}
|
||||
// console2.log(address(mock));
|
||||
@@ -106,6 +110,7 @@ contract MirrorEnv {
|
||||
// console2.log(address(mockPool));
|
||||
// console2.log(inverted);
|
||||
pools[info.pool] = mock;
|
||||
poolKeys.push() = info.pool;
|
||||
// console2.log('staking');
|
||||
MockUtil.stakeWide( nfpm, mockPool, amount0, amount1);
|
||||
// console2.log('staked');
|
||||
|
||||
Reference in New Issue
Block a user