Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

efecarranza
Copy link
Contributor

Changelog

Update README with instructions to perform live test.
Add scripts to easily test with owned set up.

import {AaveSwapper} from 'src/swaps/AaveSwapper.sol';

// make test-swap
contract TestSwap is EthereumScript {
Copy link
Contributor

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

@@ -0,0 +1,69 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pragma solidity 0.8.18;
pragma solidity ^0.8.0;

@brotherlymite
Copy link
Contributor

Could you also update the libraries to the latest version (aave-address-book) or update with the latest master branch

@efecarranza
Copy link
Contributor Author

@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);
Copy link
Contributor

@sendra sendra Oct 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants