
Aave V4 · Acts onchain
Supplies an asset to an Aave V4 spoke, crediting the wallet's position with shares of the hub the spoke draws the asset from. The socket approves the giver position manager and hands it the amount; the giver deposits it into the spoke on the wallet's behalf, so the supplied shares sit on the wallet's position while the socket only does the calling. The wallet approves the giver as a position manager on the spoke once, in the same confirmation as its first supply there. The hub's share price only rises, so the balance accrues the hub's lending rate from the block it lands, and it backs a borrow once collateral is enabled on it. Reach for it to earn yield on an idle balance, to post collateral ahead of a borrow, or as the second half of a loop where borrowed funds are swapped and supplied again in the same transaction. Follow it with the collateral status action when the deposit needs to back a borrow; a fresh supply is not collateral until it is enabled.
On other protocols · 4