Skip to content

Repository files navigation

gitbranch-contracts

Smart contracts for the GitBranch protocol deployed on Robinhood Network (chain ID 4663).

Contracts

Contract Description
GitBranchVaultFactory Deploys soul bound vaults per GitHub user
GitBranchVault Holds RWA tokens and executes swaps via Uniswap V3
GitBranchStockFactory Deploys ERC20 receipt tokens for each RWA asset
GitBranchStockToken ERC20 receipt token: gitNVDA, gitTSLA, gitAAPL and more
GitBranchToken Native GITB governance token
GitbankAirdrop Airdrop distribution contract

Deployed Addresses on Robinhood Network (Chain 4663)

Contract Address
VaultFactory 0x2d63D4092Ab7a7DC8761394b22Bb2f6Ac1F226Ba
SwapRouter (Uniswap V3) 0xCaf681a66D020601342297493863E78C959E5cb2
QuoterV2 0x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7
WETH 0x4200000000000000000000000000000000000006
USDG 0x79A02482A880bCE3F13e09Da970dC34db4CD24d1

Setup

pnpm install
cp .env.example .env
pnpm hardhat compile

Deploy

pnpm hardhat run scripts/deploy.ts --network rh

Test

pnpm hardhat test

Architecture

Each GitHub user gets a soul bound vault contract:

  1. The API server deposits USDG into the vault
  2. The vault swaps USDG for a stock token via Uniswap V3 on Robinhood Network
  3. Tokens stay in the vault until the user withdraws them

License

Apache 2.0

About

GitBranch smart contracts on Robinhood Network

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages