This plug supplies a caller-specified amount of a token to an Aave market when the target wallet holds no aTokens for that reserve. It asks the caller for the supply token, the market address, the holder wallet, and the supply amount. It reads the reserve's aToken address, checks the holder's aToken balance, and supplies only when that balance equals zero. Running it against a stale balance risks either skipping a needed supply or duplicating a position that already exists.
Actions · 6
Getassetdataofin
Reads an Aave reserve's live rates and token addresses, with supply and borrow APYs.
Getbalanceofheldby
Reads a token balance held by an address, native or ERC-20.
Is
Compares two values with a chosen operator and returns a boolean.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Supplyto
Supplies an asset to an Aave market, minting aTokens to the wallet.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Related plugs · 8
Not ready to run as it stands: it waits on values or a position of your own.