Wild Credit earns fees on the interest rate spread. The interest paid by borrowers is partly earned by the LPs and partly by the protocol. Namely, by the feeReceiver
contract.
These fees need to be converted to WILD and sent to the xWILD contract periodically.
The conversion function has a caller incentive. If the incentive to call the function exceeds the gas cost, there is a MEV opportunity.
Low
This can likely be performed daily or as the TVL grows, even multiple times per day.
- Load a list of the top 20 holders of both LP tokens for a given lending pair.
- Check their
pendingSupplyInterest
- If it's high enough, call
accrueAccount
which will distribute their accrued interest to thefeeRecipient
- After getting enough accrued interest, call
convert
function onfeeRecipient
Alternatively, just call convert
on the feeRecipient
if it has enough fees already in it without adding more pending fees by accruing individual accounts.
Current feeRecipient
contract can be found in the controller
Read Wild Credit docs for more details: https://wild-credit.gitbook.io/wild-credit/
Website: https://wild.credit