KVORUM
aaveSource: Aave governor v2 · #17

Add RAI to Aave V2

executedJun 17, 2021, 09:38 PM UTCby230x2324…d2dc

01Summary

AISummary by Kvorumclaude-haiku-4-5

Proposal to add RAI, a decentralized ETH-backed stablecoin with a moving peg (not pegged to USD), as a lending asset to Aave. RAI can be borrowed but not used as collateral. This diversifies Aave's stablecoin exposure beyond centralized dollar-pegged coins.

Type
protocol addition

Key changes

  • Add RAI token as lending asset with borrowing enabled but disabled as collateral(high)
  • Configure RAI with rateStrategyStableTwo strategy, 0% LTV, 0% liquidation threshold, 2000 reserve factor, 18 decimals(high)
  • Set RAI price oracle via ChainLink(medium)
  • Deploy aRAI interest-bearing token, variableDebtRAI and stableDebtRAI debt tokens, and strategy implementation contract(high)

Notable concerns

  • RAI protocol currently controlled by multisig with 6 hour delay, managed by Reflexer core team, not yet governance minimized as of proposal date
  • RAI has only been on mainnet for ~100 days with early-mid maturity rating
  • RAI market cap is $67M with relatively low trading volume of $8M in 24h
  • $4.56B of Aave's stable asset liquidity is centralized (USDC, USDT, TUSD, BUSD, GUSD) vs $1.25B decentralized, adding RAI increases exposure to novel asset class
Contracts0xe775a3a0a1cdc50bd48d5f47c442a0a4f5f244730x03ab458634910AaD20eF5f1C8ee96F1D6ac549190xe0065ea37791d336D78fcA0e870D04f700395B8d0xf37E202E587c6f63FD70F35C24Eb7f818CC5d01A0x2cDA07B4a6D9064292DD8d624883f07c27eE01B70xA7d4df837926cD55036175AfeF38395d56A64c220xa50ba011c48153de246e5192c8f9258a2ba79ca9
Generated by Kvorum
model: claude-haiku-4-5
provider: anthropic
profile: anthropic-fast-v1
prompt: v1.0
generated: 2mo ago
Read the description ↗

02Description

995 words

Simple Summary

Reflexer 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.

Abstract

RAI 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.

Motivation

Introducing 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.

Currently, 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.

RAI 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.

Specification

  1. What is the link between the author of the AIP and the Asset?

Co-founder of Reflexer.

  1. Provide a brief high-level overview of the project and the token

RAI is a decentralized non-pegged ETH-back stable asset meant to act as pristine collateral in DeFi.

  1. Explain positioning of token in the AAVE ecosystem. Why would it be a good borrow or collateral asset?

Other stablecoins are either centralized or pegged to the dollar. RAI is neither of those and aligns perfectly with the ethos of trust-minimized finance.

  1. 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?

RAI 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.

5.How is the asset currently used?

RAI 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.

  1. Emission schedule

There is no emission schedule. Similar to DAI, RAI minted on demand when users lock ETH into the protocol.

  1. Token & protocol permissions and upgradability

Right 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.

On the other hand, the contract that keeps track of debt and collateral in all Safes (CDPs) cannot be upgraded.

  1. Market data (Market Cap, 24h Volume, Volatility, Exchanges, Maturity)

    Market Cap: $67M 24h Volume: $8M Volatility: Very Low Maturity: Early-Mid

  2. Social channels data (Size of communities, activity on Github)

10K followers on Twitter, 4.7K members on Discord, Github is highly active.

  1. Contracts date of deployments, number of transactions, number of holders for tokens

    Date of Deployment: February 13th, 2021 Number of Transactions: 40,000+ Number of Holders: 2,000+

Rationale

The decision to design RAI as it is today came from the desire to achieve three main goals.

  1. DeFi Lego
  • Fork of MakerDAO’s Multi-Collateral DAI (MCD)
  • Governance-minimized in the Long Run
  • Algorithmic (PI controller) interest rates
  1. Self-stabilizing asset-backed credit facility
  • Like MakerDAO, users can unlock credit from their ETH
  • Unlike MakerDAO, debt/credit is not fixed at $1. Rather, it fluctuates based on supply and demand
  • RAI’s PI controller updates the system’s moving peg to balance demand for debt vs. credit
  1. Reserve asset for DeFi, alternative to pegged coins
  • More decentralized than dollar coins like USDC & USDT
  • Independent of USD inflationary monetary policy
  • Avoids being targeted by dollar coin regulation like the “Stable Act”
  • Backed by pure ETH, no centralized collateral

Implementation

The RAI price oracle will be served via ChainLink, which includes the RAI/ETH feed.

RAI will only be used for depositing and lending, not as collateral. The following params are proposed:

  • Strategy: rateStrategyStableTwo
  • Base LTV As Collateral: 0
  • Liquidation Threshold: 0
  • Liquidation Bonus: 0
  • Borrowing Enabled: true
  • Stable BorrowRate Enabled: false
  • Reserve Decimals: 18
  • Reserve Factor: 2000

Following the steps from the Aave governance docs, the following contracts were generated:

  • Interest bearing aRAI: 0xe0065ea37791d336D78fcA0e870D04f700395B8d
  • Variable Debt variableDebtRAI: 0x2cDA07B4a6D9064292DD8d624883f07c27eE01B7
  • Stable Debt stableDebtRAI: 0xf37E202E587c6f63FD70F35C24Eb7f818CC5d01A
  • Strategy Implementation for RAI: 0xA7d4df837926cD55036175AfeF38395d56A64c22

Audits/Security Reviews

OpenZeppelin Audit for the Core Contracts

Quantstamp Audits for Periphery Contracts

Solidified Audit for Periphery Contracts

RAI Smart Contract Risk: C-

RAI has been on Mainnet Ethereum for a bit more than 100 days.

RAI Counterparty Risk: C-

Currently 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.

RAI currently has 2,063 holders who performed more than 50,000 transfers.

RAI Market Risk: C

The 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%.

References

Whitepaper - https://github.com/reflexer-labs/whitepapers/blob/master/English/rai-english.pdf

Website - https://reflexer.finance/

Twitter - https://twitter.com/reflexerfinance

Docs - https://docs.reflexer.finance/

Github - https://github.com/reflexer-labs

Token Contract - https://etherscan.io/token/0x03ab458634910aad20ef5f1c8ee96f1d6ac54919

Test Cases

Implementation

Copyright

Copyright and related rights waived via CC0.

03Mismatch analysis

AIMismatch analysis by Kvorumclaude-sonnet-5
Consistent

I compared the proposal's stated risk parameters (LTV 0, Liquidation Threshold 0, Liquidation Bonus 0, Borrowing Enabled true, Stable Borrow Rate Enabled false, Reserve Decimals 18, Reserve Factor 2000) and the listed contract addresses (aRAI, variableDebtRAI, stableDebtRAI, strategy implementation) against the decoded 'execute' call in action 0. All values match exactly, including the addresses for the interest-bearing and debt tokens and the strategy contract. The second decoded action, setAssetSources, correctly sets the RAI price oracle, consistent with the description's mention of a Chainlink RAI/ETH price feed. The description's claim that RAI would only be used for lending, not as collateral, is reflected in the zeroed-out collateral parameters (LTV, Liquidation Threshold, Liquidation Bonus = 0), which prevents it from being used as collateral. One minor unexplained boolean parameter (index 12, set to false) is present in the calldata that isn't explicitly discussed in the description, but this is a standard boilerplate flag in Aave reserve listings (not a value tied to a stated numeric claim), so I did not treat it as a discrepancy. Overall, the description accurately and completely reflects the on-chain actions with no material or value mismatches found.

Generated by Kvorum
model: claude-sonnet-5
provider: anthropic
profile: anthropic-strong-v1
prompt: v1.0
generated: 2mo ago
Review the decoded actions ↗

04Actions

2 total
#0execute(address,address,address,address,address,uint256,uint256,uint256,uint256,uint8,bool,bool,bool)chain 0x1
Target
0xe775…4473
Value
0 wei
Function
execute(address,address,address,address,address,uint256,uint256,uint256,uint256,uint8,bool,bool,bool)
Arguments
{
  "0": "0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919",
  "1": "0xe0065ea37791d336D78fcA0e870D04f700395B8d",
  "2": "0xf37E202E587c6f63FD70F35C24Eb7f818CC5d01A",
  "3": "0x2cDA07B4a6D9064292DD8d624883f07c27eE01B7",
  "4": "0xA7d4df837926cD55036175AfeF38395d56A64c22",
  "5": "0",
  "6": "0",
  "7": "0",
  "8": "2000",
  "9": "18",
  "10": true,
  "11": false,
  "12": false
}
Calldata
#1setAssetSources(address[],address[])chain 0x1
Target
0xa50b…9ca9
Value
0 wei
Function
setAssetSources(address[],address[])
Arguments
{
  "0": [
    "0x03ab458634910AaD20eF5f1C8ee96F1D6ac54919"
  ],
  "1": [
    "0x4ad7B025127e89263242aB68F0f9c4E5C033B489"
  ]
}
Calldata

05Tally

Summed from votes

Voters72
VP participating613.6K
Outcome (current)For
Current support64.2%

06Voters

72 total
Filter:
VoterChoice% of totalRationale
DD0xdd70…8202For186.2K30.35%—6y ago
9B0x9b5e…0499For108.4K17.67%—6y ago
C40xc4a9…2935Against92.5K15.08%—6y ago
5B0x5bc9…d76cFor68.6K11.19%—6y ago
A30xa3f0…b233Against63.6K10.37%—6y ago
820x82a4…085aAgainst23.7K3.86%—6y ago
CF0xcfec…28e8Against17.8K2.90%—6y ago
320x329c…3ed4Against16.8K2.74%—6y ago
700x704d…a0dfFor8.8K1.43%—6y ago
800x80dc…c146For7.6K1.24%—6y ago
010x0154…6f6eFor6.9K1.12%—6y ago
970x9757…e331For4K0.66%—6y ago
360x36cf…b25fAgainst2K0.33%—6y ago
F50xf569…271bAgainst1.1K0.19%—6y ago
000x008b…f4ebFor1K0.17%—6y ago
A90xa959…1cbbAgainst779.20.13%—6y ago
7A0x7a97…20c0Against542.80.09%—6y ago
130x1397…66cdFor351.90.06%—6y ago
FD0xfd05…e1f3For3500.06%—6y ago
BA0xbaa0…cf2fAgainst347.80.06%—6y ago
4A0x4ada…1c6bFor333.50.05%—6y ago
A10xa15c…dff6For197.70.03%—6y ago
C70xc74c…0967For158.50.03%—6y ago
060x06b1…6220For155.50.03%—6y ago
2C0x2c68…54cdFor1530.02%—6y ago
530x53ed…f8e2For140.30.02%—6y ago
600x6001…887aFor104.50.02%—6y ago
250x2502…1e2cFor103.80.02%—6y ago
900x9035…e6e0For94.50.02%—6y ago
4F0x4f27…dda2For71.20.01%—6y ago
990x99d7…1f39Against68.20.01%—6y ago
D50xd50b…de9aFor58.90.01%—6y ago
7A0x7aed…9ffaFor56.60.01%—6y ago
640x64b0…a58dFor500.01%—6y ago
6F0x6f23…f633Against470.01%—6y ago
F60xf646…2a2fFor45.90.01%—6y ago
AD0xad54…99d1For42.60.01%—6y ago
F20xf21d…a2ebAgainst35.20.01%—6y ago
ED0xed5a…e14bFor33.70.01%—6y ago
950x956f…3f92For310.01%—6y ago
140x145d…b0f5For23.30.00%—6y ago
100x10d6…7178For22.10.00%—6y ago
6B0x6bac…342cFor210.00%—6y ago
2A0x2ae1…86d6For11.50.00%—6y ago
F30xf38e…379dFor9.50.00%—6y ago
C70xc77f…a99bAgainst9.50.00%—6y ago
7E0x7e1f…502aFor6.30.00%—6y ago
0D0x0d64…776dFor5.70.00%—6y ago
370x3742…92fdFor2.90.00%—6y ago
7E0x7ecb…95edFor2.50.00%—6y ago
Showing 50

07Forum

No forum thread is confidently linked to this proposal.