Skip to content

Contracts

Files

Contract addresses will be added in the repo.

The repo and contracts are under development.

  • Borrow

    • BTCBorrow.sol: Borrow contract to collateralize assets such as WBTC
    • ETHBorrow.sol: Borrow contract to collateralize assets such as ETH/WETH
    • CompoundBase/IComet.sol: Interface for interacting with Compound V3
    • CompoundBase/IWETH9.sol: Interface for interacting with Compound ETH
    • CompoundBase/bulkers/IARBBulker.sol: Interface for multi-step txns
    • interfaces/ITUSDEngine.sol: Interface for the TUSDEngine (mint/burn)
    • interfaces/ICometReward.sol: Get Compound V3 COMP reward for treasury
  • Boost

    • BoostETH.sol: Borrow contract to collateralize assets such as WBTC
    • BoostTUSD.sol: Borrow contract to collateralize assets such as ETH/WETH
    • GMXV2ETH.sol: ERC-4626 vault that integrates with GMX V2 ETH GM pool
    • StargateETH.sol: ERC-4626 vault that integrates a pool and farm strat
    • CompoundUSD.sol: ERC-4626 vault that converts USD to USDC and supplies
    • UniswapUSD.sol: ERC-4626 vault that integrates a USDC/USD pool strat
    • interfaces/IComet.sol: Interface for interacting with Compound V3
    • interfaces/IWETH.sol: Interface for interacting with wrapped Ether
    • interfaces/IStargateLPStaking.sol: Interface for staking pool tokens
    • interfaces/INonfungiblePositionManager.sol: Interface for Uniswap
    • interfaces/ISwapRouterV3.sol: For swapping USDC back ETH on GMX
    • interfaces/IWETH.sol: Interface for the wrapped Ether asset
    • interfaces/IGMX.sol: Interface for interaction with GMX
  • Farm

    • USDFarm.sol: Uniswap LP NFT staking pool to incentivize liquidity
  • Vote

    • Torque.sol: Ecosystem ERC-20 governance and utility token
    • Hamilton.sol: Decentralized governance executor contract
  • Periphery

    • Lock.sol: Cool down period enforcer to prevent malicious behavior
    • RewardUtil.sol: Safemath calculator for the TORQ distribution
    • Vesting.sol: Contract to manage individual TORQ distributions

Testing

The repo and contracts are under development.

  • /scripts: misc scripts for deployment and testing
  • /test: folder with additional testing files