Leveraged DeFi access based on on-chain credits, enabling more flexibility to experienced users.
Today, in DeFi, we always share the same leverage limitation with other users, no matter how good my credibility is. This is because most DeFi protocols can only assess risk based on the chain's current state. We believe that mature users should enjoy a higher flexibility with leverage. With Domain Expansion, users will be segmented, and experienced users get better deals on various DeFi protocols. To build an efficient tier segmentation system, we use The Graph to provide users' on-chain credits and generate proof based on the credibility criteria. The proof generated on Axiom will be the reference for the creation of the credit account. To connect Axiom and Gearbox V3 testnet, the proof will be broadcasted via Hyperlane. Lastly, different segmented users can enjoy corresponding leverage flexibility on Gearbox.
The Graph: Using a Subgraph for an Axiom Query. This project utilized a subgraph of ETH Goerli transactions, specifically from a CreditFacade containing previously occurred transactions. The subgraph extracts individual transactions from a specific user and consolidates transactions from the CreditFacade. It then analyzes these transactions to assess the user's credibility.
Axiom: Axiom Circuit users demonstrate their experience with Gearbox. The more an user has used Gearbox, the greater their understanding of a leverage Defi product. Therefore, within the circuit, we will utilize a for loop to determine the number of input transactions that prove the opening of a credit account at a specific address.
Hyperlane: We deployed the Hyperlane relayer and implemented the contracts to send and receive messages from the Hyperlane mailbox. Hyperlane enables us to bridge the user’s segmentation generated from the proof on Goerli onto a private mainnet fork where Gearbox v3 is being deployed.
Gearbox: We utilized openCreditAccount
to open an account. It illustrates the possibility of adding an extra Gater contract
and imposes a further limitation on a diverse portfolio of users.