Compute

Compute on Math

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Applies a unary math operation to a value and returns the result. Operations are absolute value, square root, exponential, and natural logarithm, all at 18 decimals on a signed input. exp and ln are the WAD-scaled functions protocols use for continuous compounding. Reach for it to convert between per-second rates and annual growth, to take the geometric mean of two prices, or to normalize a signed delta to its magnitude before a comparison.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More plugs on Base

Borrow on Base · 7 plugs

Stake on Base · 9 plugs

Provide liquidity on Base · 6 plugs

Dollar-cost average on Base · 4 plugs

More on Math · 3