YieldApe is your one-stop shop to access any yield strategy on any network with any starting token position.
The user connects their wallet, inputs an amount of USDC, and clicks submit. The frontend calls 1inch swap api to determine best route to swap axlUSDC into USDbC on Base. The frontend then calls the YieldApe contract on Mantle. The YieldApe contract wraps the user's USDC funds into axlUSDC from wallet. Using Axelar, the YieldApe contract bridges funds to the ApeZap Contract on Base with the swap route data as payload. With the payload, the ApeZap swaps USDC into USDbC and then deposits into Aave USDbC strategy using a Quicknode RPC. The ApeZap contract holds the receipt yield token. The receipt token can be returned to user on Base or bridged back on Mantle or can be held in the ApeZap contract as collateral to borrow against.
We used 1inch, Mantle, Axelar, Base, Quicknode, and Aave to demonstrate this proof of concept and used ThirdWeb to build a frontend interface. 1inch swap routing API is very robust and flexible to create the zapping experience that abstracts the need for a specific token away from the user. We used Axelar to both bridge as well as call contract functions on the destination chain from the source chain. Since 1inch routing requires off-chain compute due to gas prohibitive limits and both 1inch and Aave do not support Mantle currently, we had to call the API upfront and pass the routing data with the payload with Axelar's GMP.
MANTLE
BASE Yield Contract - receives from Axelar, zaps tokens & deposits into Aave https://basescan.org/address/0xa233441c94b2e13eaa9147849c1ed7e774c03047