Gearbox Protocol
  • Overview
  • Link Tree & Dev Docs
  • What can you do with leverage 2.0?
  • Protocol overview
    • How it works
    • Credit Accounts
      • AllowedList: Integrations
        • OLD: V1 and V2
      • How to add new Contracts & Assets to AllowedList
    • Liquidations
      • Reserve Fund
    • Protocol Fees
    • Tech Paper
    • FAQ
    • History: DAO-First Launch
      • Birth at ETHGlobal MarketMake 2021
      • Kovan testing with DegenScore & lobsterdao
      • Credit Account Mining
      • Early Testers and Discord
  • Traders & farmers
    • Opening a Credit Account
    • Margin Trading: PURE
      • Boosted Long/Short or "Free Leverage"
    • Leverage Points & Restaking
    • Leverage Farming
      • One-Click Strategies
      • Leveraged liquid staking
      • Leveraged stablecoin farming
      • Leveraged Curve V2 and Convex
      • Leveraged vanilla yVaults
      • Arbitrage of correlated assets
    • Tips for leverage users
      • How to avoid liquidations
      • How to close a Credit Account
    • PRO: Leverage Bible
  • Passive Lending
    • Pools & APY
      • OLD: V1-V2 Pools
    • Dashboard: How to Earn
  • GOVERNANCE | DAO
    • Main DAO Governance
      • Guards [Multisigs]
      • Community Delegates
    • Quotas and Gauges
      • Dashboard: Gauge Voting
  • GEAR Token
    • Supply Information
    • Utility & Staking
    • Legal Disclaimer
  • Security & Risks
    • Audits & Bug Bounty
    • Risks and T&C
Powered by GitBook
On this page
  • Allowed List policy
  • Low Overhead on Gas

Was this helpful?

  1. Protocol overview

Credit Accounts

DeFi primitive for composable leverage 2.0.

PreviousHow it worksNextAllowedList: Integrations

Last updated 1 year ago

Was this helpful?

A Credit Account is an isolated smart contract which contains both the user funds and the borrowed funds. This is where your leverage is. After you open an account, all the operations go through this account and the assets stay on it as well. You can see a Credit Account as your automated leveraged DeFi wallet where you not only keep positions, but can also program it the way you want.

Every user has their own Credit Account.

Funds on a Credit Account are used as collateral for debt, and users can operate these funds by sending orders to their Credit Accounts. That could be: margin trading on Uniswap or Sushiswap; leverage farming on Yearn; arbitraging pegged assets on Curve, and more!

Allowed List policy

Operations available to users are restricted by two policies:

  • Allowed contracts list. Users can interact through Credit Accounts only with contracts from this list to mitigate risks that funds will be sent to vulnerable smart contracts.

  • Allowed tokens list. This allows managing risks of swapping funds to highly-volatile assets whose price could drastically fall after a swap and before a liquidation would take place. Another attack vector is a user creating some dummy ERC20 and then buying it on, let's say' Uniswap - and essentially draining capital from Gearbox Protocol.

Gearbox architecture is very modular, so it's not just that there is an allowed asset for the entire protocol - there are different pools and can even be multiple pools for the same asset. There can be different Credit Managers with different AllowedList policies, etc. The information below is just an easy-to-grasp understanding for product users. Developers should dive into the tech section in Gearbox Dev docs and understand the intricacies.

  • Pool

    • Credit Manager

      • allowed assets

      • allowed contracts

  • Credit Accounts

Low Overhead on Gas

Due to the architecture and design of Gearbox Protocol being modular, users each have their own Credit Account(s) instead of executing trades via a giant joint pool of liquidity with virtual balances of each user (how protocols usually do). Therefore, the gas costs overhead is minimized.

Next to that, Credit Accounts are not deployed by users every time as separate smart contracts, but are "borrowed" from the protocol by users like if you were to get an Uber: you use a car and then give it back once finished. This way, the deployment costs are kept to zero for new users.

Both policies are managed by and can grow to enable more assets and protocol.

governance
AllowedList: Integrations
Gearbox ProtocolGearbox Dev
Logo