← Back to home

V-Cred

Enabling short-selling in DeFi using Aave credit delegation and One inch

Screenshots

V-Cred screenshot 1
V-Cred screenshot 2

Problem Statement

This project aims to short a token using the Aave credit delegation feature. V-Cred will be a series of projects which are deployed on Ethereum mainnet, and side chains like BSC, Avalanche etc.Problem: Currently there is no easy way to short a token... There are DeFi projects like Opyn which aim to provide an options alternative. Shorting a token does come with it risks, and the increased volatility will exponentially raise the margin requirements. A good solution would be to follow the margin account or line of credit pattern followed in stock markets to short token which will bridge the gap between CeFi/DeFi and provide a method to harness the volatility of tokens.Approach:A margin contract will be used to store the tokens following the credit delegation framework. This contract will store the collateralA short seller contract will be used to borrow token on behalf of margin contract.Swap i.e. short sell the tokens for stable coin i.e. USDC in 1inch exchangeWait for a specified duration when the token price goes downSwap USDC back to original token to pay back the credit for margin contract.

Solution

Mainnet fork was used, and project was built on scaffold-eth. However front-end could not be completed due to time constraints.Using ganache-cli deterministic wallet creation was used to simulate the same conditions, and demonstrate MVP with Wrapped EthMargin contract was created based on Aave credit delegation frameworkShort seller contract was used to borrow tokens, and swap them on 1inch. To get the calldata the get request data was intrepreted in front-end and then invoked in the contract function.Wait for sufficient time, and swap the tokens back into WETH i.e. payback credit.

Hackathon

MarketMake

2024

Contributors