Skip to main content

Constant Function

Definition

A Constant Function, in the context of blockchain and decentralized finance, refers to a mathematical relationship that maintains a specific invariant property within a smart contract or automated market maker. This function ensures that certain conditions or ratios hold true despite changes in underlying variables. It is fundamental to the design of many liquidity pools and stablecoin mechanisms. The preservation of this invariant permits predictable asset exchange.