-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AaveSwapper: Add test scripts #185
base: master
Are you sure you want to change the base?
Conversation
src/swaps/scripts/TestSwap.s.sol
Outdated
import {AaveSwapper} from 'src/swaps/AaveSwapper.sol'; | ||
|
||
// make test-swap | ||
contract TestSwap is EthereumScript { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put the script in the ./scripts
directory instead of ./src/swaps/scripts
src/swaps/scripts/TestSwap.s.sol
Outdated
@@ -0,0 +1,69 @@ | |||
// SPDX-License-Identifier: MIT | |||
|
|||
pragma solidity 0.8.18; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pragma solidity 0.8.18; | |
pragma solidity ^0.8.0; |
Could you also update the libraries to the latest version (aave-address-book) or update with the latest |
@brotherlymite updated! |
@@ -41,8 +41,8 @@ contract AaveSwapper is Initializable, OwnableWithGuardian, Rescuable { | |||
address public constant BAL80WETH20 = 0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56; | |||
|
|||
function initialize() external initializer { | |||
_transferOwnership(AaveGovernanceV2.SHORT_EXECUTOR); | |||
_updateGuardian(0xA519a7cE7B24333055781133B13532AEabfAC81b); | |||
_transferOwnership(0x3765A685a401622C060E5D700D9ad89413363a91); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what are these addresses? Should this be taken from address book? Provably should be passed as params though
Changelog
Update README with instructions to perform live test.
Add scripts to easily test with owned set up.