Skip to content

Commit

Permalink
Fix owner address for Aave whitelisting
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Jul 22, 2024
1 parent ac93231 commit 06f26c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eth_defi/enzyme/generic_adapter_vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def deploy_vault_with_generic_adapter(
# Check token address is valie
token = fetch_erc20_details(web3, asset.address)
logger.info("Decimals of %s is %s", token.symbol, token.decimals)
assert token.decimals > 0

tx_hash = guard.functions.whitelistToken(asset.address, f"Whitelisting {asset.symbol}").transact({"from": deployer.address})
assert_transaction_success_with_explanation(web3, tx_hash)
Expand Down Expand Up @@ -380,10 +381,10 @@ def deploy_vault_with_generic_adapter(
logger.info("Aave whitelisting for pool %s, aUSDC %s", aave_pool_address, ausdc_address)
note = f"Aave v3 pool whitelisting for USDC"

tx_hash = guard.functions.whitelistAaveV3(aave_pool_address, note).transact({"from": owner})
tx_hash = guard.functions.whitelistAaveV3(aave_pool_address, note).transact({"from": deployer.address})
assert_transaction_success_with_explanation(web3, tx_hash)

tx_hash = guard.functions.whitelistToken(ausdc_address, note).transact({"from": owner})
tx_hash = guard.functions.whitelistToken(ausdc_address, note).transact({"from": deployer.address})
assert_transaction_success_with_explanation(web3, tx_hash)

logger.info(
Expand Down

0 comments on commit 06f26c1

Please sign in to comment.