Autonity DeFi primitives — staking/delegation, Liquid Newton (LNTN), oracle price feeds, Auton Stabilization Mechanism (CDPs, liquidations, auctions). Use when building DeFi applications, staking interfaces, or price feed consumers on Autonity.
bond(validator, amount) — Delegate NTN to a validator; mints LNTN receipt tokensunbond(validator, amount) — Begin undelegation; 6-hour unbonding period (funds locked, not instant)getUnbondingPeriod() for current durationchangeCommissionRate(validator, rate), capped by protocolapproveBonding(caller, amount) — Approve third-party to bond on your behalfbondingAllowance(owner, caller) — Check approved delegation amountgetValidator(addr) before bonding — validators can be:
active — accepting delegations, in committee rotationpaused — temporarily inactive (operator choice)jailed — slashed, cannot receive delegations until jail expiresgetValidators() — List all registered validatorsgetCommittee() — Current active committee (max 30 members)Each validator has a unique LNTN ERC-20 contract representing delegated stake:
getValidator(addr).liquidContracttransfer, approve, balanceOf, totalSupplyclaimRewards() — Must call explicitly; rewards are not auto-distributedunclaimedRewards(account) — Check pending rewards before claiminglockedBalanceOf(delegator) — Tokens in unbonding (locked, not transferable)unlockedBalanceOf(delegator) — Freely transferable tokensbalanceOf() returns total (locked + unlocked)approveUnbonding(caller, amount) — Allow another address to unbond your delegationunbondingAllowance(owner, caller) — Check approved unbonding amountlatestRoundData(symbol) — Returns RoundData struct: price, timestamp, statusgetRoundData(round, symbol) — Historical price by round numbergetDecimals() — Precision for price values (never hardcode — always query)getSymbols() — List all available price feed symbolslatestRoundData() includes status field — verify it indicates a successful rounddeposit(account, amount) — Post NTN as collateralborrow(account, amount) — Mint Auton stablecoin against collateralrepay(account, amount) — Return Auton to reduce debtwithdraw(account, amount) — Reclaim NTN collateral (must maintain ratio)collateralPrice() — Current NTN/ACU ratio used for collateral valuationcdps(owner) — Query CDP state (principal, interest, collateral amounts)debtAmountAtTime(account, timestamp) — Project future debt including accrued interestbidDebt(debtor, round, ntnAmount) — Bid to liquidate (send Auton, receive NTN collateral)maxLiquidationReturn(debtor, round) — Max NTN receivable (always check before bidding)openAuctions() — List all active liquidation auctionsbidInterest(auction, ntnAmount) — Buy accrued protocol interest (pay NTN, receive Auton)minInterestPayment() — Minimum bid threshold| Source | Rate | Distribution |
|---|---|---|
| Proposer rewards | 10% of block rewards | To block proposer |
| Oracle rewards | 10% of block rewards | To oracle voters (pro-rata accuracy) |
| Delegation rewards | Remaining | Pro-rata to delegators minus validator commission |
| Treasury fee | Protocol-set | To protocol treasury account |
| Inflation | Transition + permanent | From inflation reserve via InflationController |
getValidator() state firstgetDecimals(); precision may change across networksmaxLiquidationReturn() — bid may exceed available collateralbalanceOf() includes unbonding tokens that cannot be transferred