What it offers
- exercise: Exercise a long options position to claim profit
- settle: Settle a short options position after expiry
- trade: Buy or sell options via the Premia AMM
Notes
- Each pool is a proxy routed through the pool Diamond’s facets
- Supports calls and puts on ETH, BTC, and other assets
- Long token = bought option, short token = sold/written option
- exercise returns the in-the-money value; settle returns remaining collateral to writers
Its names in a program
On Arbitrum One,Premia is a namespace: its contracts need no import.
Deployments
ABI
DiamondABI
import DiamondABI from "./protocols/premia/DiamondABI.json";
trade(uint256 size, bool isBuy, uint256 premiumLimit, address referrer) returns (uint256 totalPremium, (int256 collateral, int256 longs, int256 shorts) delta)exercise() returns (uint256 exerciseValue, uint256 exerciseFee)settle() returns (uint256 collateral)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
