Case Study · DeFi on AUUM's EVM
AMM, Perps & Staking: Real DeFi Primitives in Solidity
Three Solidity contracts deployed on AUUM's own EVM -- a constant-product AMM, a perpetuals engine priced live from that same AMM, and a stake-weighted rewards contract -- each properly authenticated by a real secp256k1 signature, not a free-text demo primitive.
x·y=k
Constant-product AMM
Live-Priced
No admin-set mark price
Stake-Weighted
MasterChef-style rewards
Solidity
secp256k1-signed, on revm
The challenge
AUUM's native chain layer deliberately keeps its own AMM and Perps primitives as unauthenticated demo code -- a real DeFi stack needs the opposite: genuine cryptographic authentication on every trade, a mark price nobody can quietly set by hand, and a reward mechanism that survives a chain quirk (this EVM's block.timestamp doesn't advance) without silently failing to ever pay out.
What we built
SimpleAMM: Constant-Product Swaps
Real on-chain liquidity, real swaps
A genuine x·y=k pool with a 0.3% LP fee, verified with real on-chain swaps -- not a simulation. Every trade requires the trader's own secp256k1-signed transaction, checked by revm before execution.
SimplePerps: Live-Priced Leverage
No code path to set the price by hand
The mark price reads directly from the AMM's own reserves on every call -- there is no admin function, no oracle to trust, no way for anyone to set the price other than the market itself.
Staking: Stake-Weighted Rewards
A real workaround for a real chain quirk
A MasterChef-style reward-per-share accumulator, driven by an owner-triggered tick() rather than block.timestamp -- direct testing showed this EVM's timestamp never advances, so a naive timestamp-driven schedule would silently never pay out. tick() is a workaround for that gap, not a design preference.
When it's used
- Anyone swapping or leveraging AUUM through the CEX's custodial wallets, natively.
- Validators staking AUUM for real rewards, with block-proposal rights following.
- Anyone building on AUUM's EVM who wants a reference for properly-signed DeFi contracts.
How to use it
Connect a wallet to AUUM's EVM RPC and interact with the contracts directly, or trade the same primitives natively through the CEX's custodial wallets without managing gas yourself.
- Point a wallet at AUUM's EVM RPC
- Swap, open a leveraged position, or stake
- Or trade the same primitives natively via the CEX
Need DeFi primitives built right?
Let's talk about AMMs, perpetuals, staking, or the rest of your on-chain product.