hackquest logo

RobinUSD

A stablecoin backed by real stock tokens on Robinhood Chain

視頻

專案圖片 1
專案圖片 2

技術堆疊

Web3
Next
Node
Solidity

描述

RobinUSD

RobinUSD (USDRh) is a decentralized stablecoin backed by real stock tokens, built on the Robinhood Chain. Users can deposit stock tokens as collateral, mint USDRh stablecoins, send them to others or use in DeFi protocols, and burn them to redeem their collateral — all through a modern web interface.

Why?

Because programmable economies need easily exchangeable and usable assets, that's where stablecoins come in. RobinUSD allows any user with token stocks to obtain stablecoins without selling their assets and use them in any DeFi protocol, without depending on a centralized entity.

How works?

To obtain USDRh, you need to deposit collateral in any enabled stock token (such as TSLA for example) and you will receive the corresponding amount directly in your wallet (you will need to deposit 150% of the amount you require in USDRh in order to protect the stock token collateral against high fluctuations).

You can use USDRh to send it to any wallet on the Robinhood Chain, or you can also trade on protocols within the network.

At any time, you can burn your stablecoins and receive your stock tokens back.

Advantages

RobinUSD has several advantages:

  • It supports any stock token as collateral (as Robinhood Chain expands with more tokens, more collateral options become available).

  • It has an auction model to pay off debts against collateral during periods of high volatility or liquidation.

Smart Contracts

All contracts are deployed on Robinhood Chain Testnet.

Main Contracts

Contract

Address

USDRH Token

0x641D5c4c02C63755FB97A2BCc59623451cA7D825

USDRH Manager

0x758AB6eC7992E8752c5f43b5e4Eb619643312079

Supported Stock Tokens

Ticker

Address

TSLA

0xC9f9c86933092BbbfFF3CCb4b105A4A94bf3Bd4E

AMZN

0x5884aD2f920c162CFBbACc88C9C51AA75eC09E02

PLTR

0x1FBE1a0e43594b3455993B5dE5Fd0A7A266298d0

NFLX

0x3b8262A63d25f0477c4DDE23F83cfe22Cb768C93

AMD

0x71178BAc73cBeb415514eB542a8995b82669778d

Contract (USDRh Manager) main functions

Mint (depositAndMint)

Users deposit stock tokens as collateral to mint USDRh.

collateralValue    = amount * price (from Chainlink oracle)
rawMintAmount      = (collateralValue * 100) / collateralRatio
fee                = rawMintAmount * mintFeeBPS / 10000  (0.5%)
finalMintAmount    = rawMintAmount - fee

Key details:

  • Collateral ratio: 150% — for every $150 of stock deposited, user gets ~$100 USDRh.

  • Mint fee: 0.5% (50 BPS), minted directly to the contract treasury.

  • User debt (userDebt[msg.sender]) is tracked as the rawMintAmount (pre-fee amount).

  • The fee is not attributed as user debt.

Burn (burnAndRedeem)

Users burn USDRh to reclaim their deposited stock tokens.

collateralToReturn = (stableAmount * collateralRatio * 1e18) / (price * 100) / factor

Key details:

  • The contract checks that the remaining position stays ≥ 150% collateralized after the withdrawal. If the user is burning all their debt, this check is skipped.

  • Collateral is returned at the same ratio used during minting (not at 1:1), preserving the overcollateralization structure.

  • The burned USDRh is subtracted from userDebt[msg.sender].

Liquidation (Dutch Auction)

When a user's collateral ratio drops below 120% (liquidationThreshold), anyone can call startAuction to begin a 1-hour Dutch auction.

Trigger condition

currentRatio = (collateralValue * 100) / debt < 120

Auction mechanics

  • The entire user debt and all their collateral for a given stock token are placed into a single auction.

  • The liquidator burns USDRh to cover the debt and receives collateral in return.

  • The amount of collateral received increases linearly over time:

Time

Collateral received

t = 0

minCollateral — exact debt value at market price (0% bonus)

t = 30 min

minCollateral + 50% of surplus

t ≥ 1 hour

All collateral (maximum discount)

If the debt exceeds the collateral's market value, the liquidator gets everything immediately.

Any surplus collateral beyond what the liquidator takes is returned to the original borrower.

Important notes

  • The liquidator must already hold USDRh to burn — they must acquire it beforehand (by minting or buying on the market).

  • The auction seizes all of the user's debt even though it only liquidates one collateral token at a time. If a user has debt backed by two different stock tokens (e.g. AAPL and TSLA), starting an auction on AAPL takes all of their AAPL collateral and all of their debt, leaving the TSLA position free-floating with no associated debt.

黑客松進展

MVP created and smart contracts validated.

團隊負責人
NNestor Campos
專案連結
部署生態系
Robinhood Chain TestnetRobinhood Chain Testnet
行業
DeFiRWA