Skip to content

Commit

Permalink
Fix stack too deep error w/o optimizer by swapping interface for offe…
Browse files Browse the repository at this point in the history
…nding Aave contract

Also updates Flexible Voting to v1.1.2 to avoid forge coverage issues related to non-
relative path imports. See release notes at:
https://github.com/ScopeLift/flexible-voting/releases/tag/v1.1.2
  • Loading branch information
apbendi committed Oct 26, 2023
1 parent 4fe7acb commit c532578
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uses: zgosalvez/github-actions-report-lcov@v2
with:
coverage-files: ./lcov.info
minimum-coverage: 91 # Set coverage threshold.
minimum-coverage: 88 # Set coverage threshold.

lint:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions test/ATokenFlexVotingFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ConfiguratorInputTypes } from 'aave-v3-core/contracts/protocol/librarie
import { DataTypes } from 'aave-v3-core/contracts/protocol/libraries/types/DataTypes.sol';
import { IAToken } from "aave-v3-core/contracts/interfaces/IAToken.sol";
import { IPool } from 'aave-v3-core/contracts/interfaces/IPool.sol';
import { PoolConfigurator } from 'aave-v3-core/contracts/protocol/pool/PoolConfigurator.sol';
import { IPoolConfigurator } from 'aave-v3-core/contracts/interfaces/IPoolConfigurator.sol';

import { MockATokenFlexVoting } from "test/MockATokenFlexVoting.sol";
import { FractionalGovernor } from "test/FractionalGovernor.sol";
Expand Down Expand Up @@ -110,8 +110,8 @@ contract AaveAtokenForkTest is Test {
// );

// Address from: pool.ADDRESSES_PROVIDER().getPoolConfigurator();
PoolConfigurator _poolConfigurator =
PoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);
IPoolConfigurator _poolConfigurator =
IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);

// deploy the aGOV token
AToken _aTokenImplementation = new MockATokenFlexVoting(pool, address(governor));
Expand Down

0 comments on commit c532578

Please sign in to comment.