mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
4fe36c8fa4
Set in constructor of BaseParaSwapSellAdapter and validates before swap. Created mock registry that only validates one address. Changed the test fixtures to accomodate registry and added two new tests. Updated deployment script. Registry address left as a placeholder in package.json since not known yet. Fixes MixBytes Warning 1.
18 lines
482 B
Solidity
18 lines
482 B
Solidity
// SPDX-License-Identifier: agpl-3.0
|
|
pragma solidity 0.6.12;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
import {IParaSwapAugustusRegistry} from '../../interfaces/IParaSwapAugustusRegistry.sol';
|
|
|
|
contract MockParaSwapAugustusRegistry is IParaSwapAugustusRegistry {
|
|
address immutable AUGUSTUS;
|
|
|
|
constructor(address augustus) public {
|
|
AUGUSTUS = augustus;
|
|
}
|
|
|
|
function isValidAugustus(address augustus) external view override returns (bool) {
|
|
return augustus == AUGUSTUS;
|
|
}
|
|
}
|