Daily 20 USDC Into ETH Under 1600 on Chainlink

Base
Base
0x62180042606624f02D8A130dA8A3171e9b33894d

What this does

This plug swaps 20 USDC for ETH through the solver once the Chainlink ETH/USD price reads below 1600. It asks the caller only to fund and authorize the run. It fires at most once per day and only while that price condition holds, computing the ETH amount from the quoted price and requiring at least 99 percent of it. Running this by hand or against a stale price risks missing the sub-1600 window or accepting a worse fill than the price-implied floor.

Actions · 7

  • Repeat
    Repeat up to x every
    Limits how many times this plug can execute within a time interval.
  • Get price
    Get price of in
    Reads the latest Chainlink price of a base asset in a quote asset, normalized to 18 decimals.
  • Predicate
    Steers control flow by comparing two values: branch, loop, or require the condition holds.
  • Multiply then divide
    Calculate times divided by rounded
    Multiplies two values and divides by a third in one step, rounding up or down.
  • Multiply then divide
    Calculate times divided by rounded
    Multiplies two values and divides by a third in one step, rounding up or down.
  • Swap tokens
    Swap for at least
    Swaps one token for another through the solver over indexed liquidity.
  • End block
    End block
    Closes the innermost open block, whether a conditional branch or a loop.

More like this on Base

Dollar-cost average on Base · 4 plugs

Related plugs · 8