22

Raft

  • Live

Avatar
Pujeet Manot

Raft is a DeFi protocol that lets you generate R by depositing liquid staking tokens (LSDs) as collateral. A capital-efficient way to borrow while keeping your staking rewards. Raft's first stablecoin is called R.

Official Website: raft.fi/
Documentation: docs.raft.fi/
Source Code: github.com/raft-fi/contracts
Audit: github.com/trailofbits/publications/blob/master/reviews/2023-04-tempus-raft-securityreview.pdf

Official Twitter: twitter.com/raft_fi
Discord: discord.com/invite/raft-fi
Telegram: t.me/raft_chat

Token Address: etherscan.io/address/0x183015a9bA6fF60230fdEaDc3F43b3D788b13e21

Explanation of the smart contract's logic:
Positions are managed via the `PositionManager.managePosition`, which allows opening, adjusting and closing positions. Leveraged positions can be managed via the OneStepLeverage contract.

Currently Raft’s only supported collateral token is wstETH, but to make things easier there the `PositionManagerStETH` and `OneStepLeverageStETH` which allow users to participate using ETH and stETH (which internally is converted to `wstETH`)

Upon depositing collateral, depositors receive `raftCollateralToken` to represent their locked collateral. Similarly, upon minting R, minters receive `raftDebtToken` to represent their debt.

How to get address balance at the protocol? Including staked assets
Each supported collateral token (currently just wstETH) has a pair of `raftCollateralToken` and `raftDebtToken`, which can be fetched using the `PositionManager.raftCollateralToken` and `PositionManager.raftDebtToken` functions, respectively. Then simply query the `balanceOf` function of each of those.

If there is a factory contract, how to track the list of assets?
As described above, check the `raftCollateralToken` and `raftDebtToken` for each supported collateral token. It’s possible to check the supported collateral tokens by querying the `CollateralTokenAdded` event, emitted from `PositionManager`.

List of all contracts:

Ethereum Mainnet Contracts

PositionManager - etherscan.io/address/0x5f59b322eb3e16a0c78846195af1f588b77403fc
R stablecoin - etherscan.io/address/0x183015a9bA6fF60230fdEaDc3F43b3D788b13e21
Split liquidation collateral - etherscan.io/address/0xd7945b24c6c9ecd63656aafea769f71e5a045f3c
Price feed - etherscan.io/address/0xdb5de0a34b29ffdeec61e2d8ab4db63f6641c730

stETH

Position Manager StETH - etherscan.io/address/0x839d6833cee34ffab6fa9057b39f02bd3091a1d6
Chainlink price oracle (Primary) - etherscan.io/address/0x36f4a2e3ba37f438c902fd3389e5b60d0904310a
Tellor price oracle (Secondary) - etherscan.io/address/0x79e75665e72b76cfe013e9fe0319d60da25015b0
Raft wstETH collateral token (rwstETH-c) - etherscan.io/address/0xa7820009f79687d39f51909a01e7fd4b4d0663f8
Raft wstETH debt token (rwstETH-d) - etherscan.io/address/0x1C1D49D8F601f19D2Fa88b14BEf491759aaaF5d8

rETH
Position Manager rETH - etherscan.io/address/0x29f8abb4cab4bbb56f617d9a3c0f62d33758e74e
Chainlink rETH/USD price oracle (Primary) - etherscan.io/address/0x5d12c0f5711849fec38e22b2ae8c01d56298b047
Tellor rETH/USD price oracle (Secondary) - etherscan.io/address/0xf9784b938c5b82510708f90941f1ad03169d75bd
Price feed rETH/USD - etherscan.io/address/0x62ac8d1ebf61636e17d92ec3b24e8e03fb853cda
Raft rETH collateral token (rwcrETH-c) - etherscan.io/address/0xc38a040faC5769bDed5dDa8Dea1aef609e755363
Raft rETH debt token (rwcrETH-d) - etherscan.io/address/0xF22Cd22B5Cf439825C6B75c816A4daf8fB44375B

Last updated 27 June, 2023

Activity Newest / Oldest

Avatar

Nahuel | Zerion

Status changed to: Live