What it offers
- transfer: Transfer FRAX tokens
- approve: Approve FRAX token spender
Notes
- V1 was fractional-algorithmic, V2 (Frax v3) is fully collateralized
- FXS is the governance/value accrual token
- sFRAX is the staked FRAX vault (ERC-4626) for earning yield - see frax-ether module for sfrxETH
- Frax ecosystem includes: FRAX (stablecoin), frxETH/sfrxETH (liquid staking), FPI (inflation-pegged)
Its names in a program
On Ethereum,Frax is a namespace: its contracts need no import.
Deployments
ABI
FraxERC20ABI
import FraxERC20ABI from "./protocols/frax/FraxERC20ABI.json"; Speaks for: frax.
balanceOf(address account) view returns (uint256)approve(address spender, uint256 amount) returns (bool)transfer(address to, uint256 amount) returns (bool)
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.
