What it offers
- exitRai: Exit RAI from the system (withdraw RAI tokens)
- joinRai: Join RAI into the system (deposit RAI tokens)
Notes
- RAI is non-pegged, floating around $3 - NOT a $1 stablecoin
- PID controller adjusts the redemption rate to dampen RAI price volatility
- Inspired by MakerDAO but with a non-pegged design philosophy
- SAFEs (similar to MakerDAO Vaults) hold ETH collateral backing RAI debt
- coinJoin converts between internal system debt units and external RAI ERC-20
- ethJoin converts between ETH and internal collateral accounting
Its names in a program
On Ethereum,Reflexer is a namespace: its contracts need no import.
Deployments
ABI
CoinJoinABI
import CoinJoinABI from "./protocols/reflexer/CoinJoinABI.json"; Speaks for: coinJoin.
join(address account, uint256 wad)exit(address account, uint256 wad)
ETHJoinABI
import ETHJoinABI from "./protocols/reflexer/ETHJoinABI.json"; Speaks for: ethJoin.
join(address account, uint256 wad)exit(address account, uint256 wad)
SAFEEngineABI
import SAFEEngineABI from "./protocols/reflexer/SAFEEngineABI.json"; Speaks for: safeEngine.
modifySAFECollateralization(bytes32 collateralType, address safe, address collateralSource, address debtDestination, int256 deltaCollateral, int256 deltaDebt)safes(bytes32 collateralType, address safe) view returns (uint256 lockedCollateral, uint256 generatedDebt)
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.
