Comment on page
Most of Origin's contracts are upgradable via a well-known proxy wrapper and an implementation contract. The Vault is split into VaultAdmin and VaultCore to work around the maximum contract size limit on Ethereum.
OETH Contract Dependencies
OETH Yield Harvesting & Rewards Distribution
OETH is backed by WETH and the following liquid staking tokens:
OETH Oracle contracts
The following Chainlink oracles are used to protect the vault in case a backing asset loses value. They also offer slippage protection when harvesting rewards tokens.
Frax's frxETH/ETH Oracle is used for frxETH pricing as there is no Chainlink Oracle for the frxETH/ETH pair. This sources prices from Curve's frxETH/ETH pool and Uniswap's frxETH/FRAX pool. Chainlink FRAX/USD and ETH/USD Oracles are then used to convert frxETH/FRAX back to a frxETH/ETH price.
The AURA/ETH price comes from Origin's
AuraWETHPriceFeedcontract that uses the Balancer 80 AURA, 20 WETH pool to get a time weighted average price (TWAP). The TWAP used is the latest AURA/WETH price with a five minute interval. This is cross checked with the one hour interval price from five minutes ago. If the two TWAPs are more than 2% out the price is rejected.