Skip to content

unit-index/theunit-contracts

Repository files navigation

The Unit Contracts

forge test --match-path test/FarmV2.t.sol -vv --fork-url https://goerli-rollup.arbitrum.io/rpc --etherscan-api-key AYKR4JV7AZ6678YBFW6HS5C7G4HV29GB5 The Unit Contracts for Testnets

How to Deploy

  1. Deploy UN - MULTISIG= npm run deploy:token:sepolia
  2. Mint UN - TO= AMOUNT=<amount(ether)> npm run mint:token:sepolia
  3. Bridge UN to Arbitrum Sepolia - https://bridge.arbitrum.io
  4. Set bridgedUN to the bridged address in Base.s.sol
  5. Deploy a test collateral token on Arbitrum Sepolia - TO= AMOUNT=<amount(ether)> npm run deploy:collateral:arbitrumSepolia
  6. Set WBTC_TEST_ARBITRUM_SEPOLIA to the address deployed at step 5.
  7. npm run deploy:vault:arbitrumSepolia to deploy the TINU, price feed and the vault contract
  8. Set the eth and btc price feed in frontend cron and config
  9. npm run deploy:ticket:arbitrumSepolia to deploy the TicketFactory for bridged UN
  10. npm run deploy:farm:arbitrumSepolia to deploy the farm router
  11. npm run generate:arbitrumSepolia to generate the contracts.json needed in frontend

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •