Context
The Aave IPFS interface uses Paraswap for the Swap Collateral and Repay with collateral features.
In June 2022, Paraswap started distributing part of the positive slippage occurring on swaps back to the referrer, which in this case is the Aave protocol itself. The reward is not distributed automatically but has to be manually claimed by the eligible claimers.
In the current setup, the Aave governance Executor contracts and Guardians on the respective networks are the eligible claimers for all rewards on their respective networks.
The permissioned claim functions on the Paraswap FeeClaimer contract allow claiming fees to an arbitrary address. This means that claiming has to go through the governance process like any other governance-controlled contract.
While this was the only possible way at the time, this introduces a bit of unnecessary complexity for an action that realistically will never have any opposition (claiming tokens to the Aave Collector, no negative side effect).
Aave Paraswap fee claimer
Therefore, to simplify the process we present the AaveParaswapFeeClaimer
.
The AaveParaswapClaimer is a permissionless contract that allows any address to claim rewards on behalf of the Aave protocol to the Aave Collector.
The contract offers 4 methods:
-
getClaimable(address asset)
returns the claimable amount for a given asset. -
batchGetClaimable(address[] memory assets)
returns claimable amounts for given assets. -
claimToCollector(IERC20 asset)
claims all claimable of a given asset to the collector. -
batchClaimToCollector(address[] memory assets)
claims all claimable of given assets to the collector. This method has the same limitations as thebatchWithdrawAllERC20
method on theIFeeClaimer
interface; namely, it will revert when passing an asset with 0 claimable balance.
The AaveParaswapFeeClaimer
was peer-reviewed and tested, but not audited by an external auditor. We consider this sufficient given the simplicity of the code and its simple flow of transfers (the target to receive funds is always a contract of the Aave protocol).
Next steps
We will create a Snapshot vote to get the approval of the community and, if this proposal finds support, the claimer will be deployed on all networks and a referrer change will be coordinated with the Paraswap team.
There are currently around ~70k$ in unclaimed Paraswap fees for the Aave protocol which could be claimed by the Aave governance. The repository contains contracts and scripts to facility the claiming process through governance.