This plug reads the socket's overall position in an Aave market and outputs both whether current debt sits above a target and the absolute distance between current debt and that target. It asks the caller for the Aave market address and the target_debt level to measure against. It fires whenever called, computing the excess when debt is over target and the shortfall otherwise. Reading the debt figure by hand or from a stale account snapshot yields a delta that no longer matches the live position.
Actions · 13
Getdatain
Reads an address's overall position in an Aave market: collateral, debt, borrow capacity, and health factor.
Is
Compares two values with a chosen operator and returns a boolean.
Setto
Assigns a value to a named variable that later steps reference.
Setto
Assigns a value to a named variable that later steps reference.
Steers control flow by comparing two values: branch, loop, or require the condition holds.
Calculate
Applies a binary arithmetic operation to two values and returns the result.
Setto
Assigns a value to a named variable that later steps reference.
Else
Opens the else branch of a conditional.
Calculate
Applies a binary arithmetic operation to two values and returns the result.
Setto
Assigns a value to a named variable that later steps reference.
Endblock
Closes the innermost open block, whether a conditional branch or a loop.
Bubble
Surfaces a value as an output of this plug.
Bubble
Surfaces a value as an output of this plug.
Related plugs · 8
Not ready to run as it stands: it waits on values or a position of your own.