{"aip":22,"title":"Add RAI to Aave V2","status":"Proposed","author":"Stefan Ionescu (@stefanionescu)","shortDescription":"Create a new Aave V2 market for the RAI stablecoin","discussions":"https://discord.gg/zCQYcFPEsE","created":"2021-05-19T00:00:00.000Z","preview":"## Simple Summary\n\nReflexer Labs has designed a new type of stable …","basename":"AIP-22","description":"\n\n## Simple Summary\n\nReflexer Labs has designed a new type of stable asset called RAI, an ETH backed stablecoin with a moving peg. RAI aims to become an autonomous, crypto native and stable unit of account for the DeFi industry.\n\n## Abstract\n\nRAI is an asset backed only by ETH, governance-minimized, and programmed to maintain its own price stability without needing to peg to an external price reference like the USD. We believe these qualities make RAI ideal initially as an alternative to pegged-coins for use in DeFi as collateral and as a stable reserve asset, especially for programs where resilience is critical.\n\n## Motivation\n\nIntroducing more trustless, stable assets into Aave money markets will benefit both Aave and the ecosystem as a whole. The addition of RAI will diversify the protocol’s exposure to stable assets beyond traditional dollar-pegged stablecoins and provide enough bandwidth to grow the protocols TVL.\n\nCurrently, more than $4.56B worth of stable asset liquidity on Aave V1 and V2 is centralised (USDC, USDT, TUSD, BUSD, GUSD) while only $1.25B (~25%) is decentralised (DAI, sUSD). While this isn’t inherently a negative, introducing more decentralised, stable assets adds to Aave’s composability and resilience.\n\nRAI also stands to benefit from being able to expand its utility and liquidity across the largest lending protocol in the space, allowing for more experimentation to occur in the ongoing journey towards entirely trustless and decentralized stable-credit.\n\n## Specification\n\n1. What is the link between the author of the AIP and the Asset?\n\nCo-founder of Reflexer.\n\n2. Provide a brief high-level overview of the project and the token\n\nRAI is a decentralized non-pegged ETH-back stable asset meant to act as pristine collateral in DeFi.\n\n3. Explain positioning of token in the AAVE ecosystem. Why would it be a good borrow or collateral asset?\n\nOther stablecoins are either centralized or pegged to the dollar. RAI is neither of those and aligns perfectly with the ethos of trust-minimized finance.\n\n4. Provide a brief history of the project and the different components: DAO (is it live?), products (are the live?). How did it overcome some of the challenges it faced?\n\nRAI launched in February and has amassed over $100M in liquidity with $300M in value locked. RAI is governance minimised by design, as well as currently moving towards a grants DAO.\n\n5.How is the asset currently used?\n\nRAI is currently used as a trust-minmized alternative to other stablecoins. The goal is to drive adoption of RAI to be used as collateral in money markets, other synthetic assets, and more.\n\n6. Emission schedule\n\nThere is no emission schedule. Similar to DAI, RAI minted on demand when users lock ETH into the protocol.\n\n7. Token & protocol permissions and upgradability\n\nRight now the protocol is almost fully upgradeable. This includes anything from oracles, the contract that collects stability fees, the contract that liquidates positions, the one that auctions collateral etc. This is managed through a multisig with a 6 hour delay on any governance action. Managed by the Reflexer core team. The multisig manages the full system and will do so until rai is gov minimized.\n\nOn the other hand, the contract that keeps track of debt and collateral in all Safes (CDPs) cannot be upgraded.\n\n8. Market data (Market Cap, 24h Volume, Volatility, Exchanges, Maturity)\n\n    Market Cap: $67M\n    24h Volume: $8M\n    Volatility: Very Low\n    Maturity: Early-Mid\n\n9. Social channels data (Size of communities, activity on Github)\n\n10K followers on Twitter, 4.7K members on Discord, Github is highly active.\n\n10. Contracts date of deployments, number of transactions, number of holders for tokens\n\n    Date of Deployment: February 13th, 2021\n    Number of Transactions: 40,000+\n    Number of Holders: 2,000+\n\n## Rationale\n\nThe decision to design RAI as it is today came from the desire to achieve three main goals.\n\n1. DeFi Lego\n\n- Fork of MakerDAO’s Multi-Collateral DAI (MCD)\n- Governance-minimized in the Long Run\n- Algorithmic (PI controller) interest rates\n\n2. Self-stabilizing asset-backed credit facility\n\n- Like MakerDAO, users can unlock credit from their ETH\n- Unlike MakerDAO, debt/credit is not fixed at $1. Rather, it fluctuates based on supply and demand\n- RAI’s PI controller updates the system’s moving peg to balance demand for debt vs. credit\n\n3. Reserve asset for DeFi, alternative to pegged coins\n\n- More decentralized than dollar coins like USDC & USDT\n- Independent of USD inflationary monetary policy\n- Avoids being targeted by dollar coin regulation like the “Stable Act”\n- Backed by pure ETH, no centralized collateral\n\n## Implementation\n\nThe RAI price oracle will be served via [ChainLink](https://chain.link/), which includes the [RAI/ETH feed](https://docs.chain.link/docs/ethereum-addresses).\n\nRAI will only be used for depositing and lending, not as collateral. The following params are proposed:\n\n\n  - Strategy: rateStrategyStableTwo\n  - Base LTV As Collateral: 0\n  - Liquidation Threshold: 0\n  - Liquidation Bonus: 0\n  - Borrowing Enabled: true\n  - Stable BorrowRate Enabled: false\n  - Reserve Decimals: 18\n  - Reserve Factor: 2000\n\nFollowing the steps from the [Aave governance docs](https://docs.aave.com/developers/protocol-governance/governance/propose-your-token-as-new-aave-asset), the following contracts were generated:\n\n- Interest bearing aRAI: 0xe0065ea37791d336D78fcA0e870D04f700395B8d\n- Variable Debt variableDebtRAI: 0x2cDA07B4a6D9064292DD8d624883f07c27eE01B7\n- Stable Debt stableDebtRAI: 0xf37E202E587c6f63FD70F35C24Eb7f818CC5d01A\n- Strategy Implementation for RAI: 0xA7d4df837926cD55036175AfeF38395d56A64c22\n\n\n## Audits/Security Reviews\n\n[OpenZeppelin Audit for the Core Contracts](https://github.com/reflexer-labs/geb-audits/tree/master/open-zeppelin/core-contracts)\n\n[Quantstamp Audits for Periphery Contracts](https://github.com/reflexer-labs/geb-audits/tree/master/quantstamp/helper-contracts)\n\n[Solidified Audit for Periphery Contracts](https://github.com/reflexer-labs/geb-audits/tree/master/solidified/helper-contracts)\n\n**RAI Smart Contract Risk**: **C-**\n\nRAI has been on Mainnet Ethereum for a bit more than 100 days.\n\n**RAI Counterparty Risk**: **C-**\n\nCurrently the RAI protocol can be paused or modified by a multisig. The protocol is meant to be governance minimized by end of summer 2022 according to [this public roadmap](https://docs.reflexer.finance/ungovernance/governance-minimization-guide#4-governance-minimization-levels).\n\nRAI currently has 2,063 holders who performed more than 50,000 transfers.\n\n**RAI Market Risk**: **C**\n\nThe current RAI market cap is 33,126,214 USD. The average 24H trading volume in the past month has been 8,786,384,63 USD. RAI's normalized volatility over the last month is 1.49%.\n\n## References\n\nWhitepaper - https://github.com/reflexer-labs/whitepapers/blob/master/English/rai-english.pdf\n\nWebsite - https://reflexer.finance/\n\nTwitter - https://twitter.com/reflexerfinance\n\nDocs - https://docs.reflexer.finance/\n\nGithub - https://github.com/reflexer-labs\n\nToken Contract - https://etherscan.io/token/0x03ab458634910aad20ef5f1c8ee96f1d6ac54919\n\n## Test Cases\n\n## Implementation\n\n## Copyright\n\nCopyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).\n"}