Open levity opened 2 years ago
Concerning this line: https://github.com/coordinape/coordinape-protocol/blob/62df1c61c97e6c74437838fdda8059b27f171511/contracts/ApeProtocol/ApeDistributor.sol#L62
There are two issues:
_token
ApeVault.vault
// BaseWrapperImplementation.token require(address(ApeVaultWrapperImplementation(_vault).token()) == _token, "Vault cannot supply token"); // VaultAPI.token require(address(ApeVaultWrapperImplementation(_vault).vault().token()) == _token, "Vault cannot supply token");
uploadEpochRoot
simpleToken
require( address(ApeVaultWrapperImplementation(_vault).token()) == _token || address(ApeVaultWrapperImplementation(_vault).simpleToken()) == _token, "Vault cannot supply token" );
thx @teeolendo for finding this
Concerning this line: https://github.com/coordinape/coordinape-protocol/blob/62df1c61c97e6c74437838fdda8059b27f171511/contracts/ApeProtocol/ApeDistributor.sol#L62
There are two issues:
_token
argument againstApeVault.vault
, which is the address of the underlying Yearn vault. Perhaps it should be one of the following instead:uploadEpochRoot
for the vault'ssimpleToken
. so we'd need to do something like this: