Skip to content

Repository files navigation

gitbranch-contracts

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

Contracts

ContractDescription
GitBranchVaultFactoryDeploys soul bound vaults per GitHub user
GitBranchVaultHolds RWA tokens and executes swaps via Uniswap V3
GitBranchStockFactoryDeploys ERC20 receipt tokens for each RWA asset
GitBranchStockTokenERC20 receipt token: gitNVDA, gitTSLA, gitAAPL and more
GitBranchTokenNative GITB governance token
GitbankAirdropAirdrop distribution contract

Deployed Addresses on Robinhood Network (Chain 4663)

ContractAddress
VaultFactory0x2d63D4092Ab7a7DC8761394b22Bb2f6Ac1F226Ba
SwapRouter (Uniswap V3)0xCaf681a66D020601342297493863E78C959E5cb2
QuoterV20x33e885ed0ec9bf04ecfb19341582aadcb4c8a9e7
WETH0x4200000000000000000000000000000000000006
USDG0x79A02482A880bCE3F13e09Da970dC34db4CD24d1

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