Shorty grant proposal

Hello, my name is pyramidmaker, and I am one of the founders of Solidi Labs. In this post, you will find our draft grant proposal for Shorty. We have been working on hedged and short strategies using decentralized lending protocols for a while now, and we are very excited about building with Ajna.


Shorty

Request

Receiving Address: 0x4060550F3E6687F0269E73B9179Ff05d0A84B208
AJNA Amount: 1,800,000 ($160k, assuming Ajna price = $0.10, and ~10% average slippage cost)

Applicant and Team Information

Applicant Name: @pyramidmaker
Email: louloufromtheblock@gmail.com
About you and/or the team:

Solidi Labs: Team of Engineers and technical PMs, specialized in web3 product development, smart contract development, and on-chain quant strategies. Maker ecosystem actor. The founding members are:

@pyramidmaker: Former Starknet CU facilitator. Former PM and CEO of a quant risk solution for crypto lenders. 10 years leading products in startups from seed to series C. Engineering and Quant Finance background.

@lakonema2000 : Data, Quant, and smart contract Engineer. Former tech lead for Aave on Starknet. Former tech lead at Consensys (RWA tokenization, protocol engineering). Quant background (PhD on causality statistical estimation), tech lead on Quant products in early stage to late stage companies.

Additional Links: Our last build is Hedgerly, which we will make available for investment by the Maker subDAOs, and which aims at solving the very old problem of impermanent losses (and straight up losses). Hedgerly is an hedged LP position that brings 15-35% APY at 1.5-2% volatility, for a share ratio between 8 and 20. Hedgergly leverages decentralized lending protocols integration to take a short position in a very similar fashion as we propose to integrate Ajna in this project. Hedgerly has gone through 3 different iterations since October and is now production-ready.

Project Information

1. What is it?

The dream of both degens and more buttoned-up crypto traders, a way to short mid-cap token pairs in a fully decentralized fashion, with leverage.

Shorty is a set of short position management smart contracts and an interface enabling users to open, manage, and close short positions on token pairs (basequote, e.g., PEPE-ETH) that meet two conditions:
i. A pool base-quote (e.g., PEPE-ETH) on Ajna exists
ii. A DEX pool base-quote exists with sufficient liquidity

2. What problem is being solved, how?

1st problem: Most tokens can’t be shorted in a decentralized fashion. Only large-cap tokens (and token pairs) can be shorted using fully decentralized protocols like Aave. Using Ajna, we will enable users to short a much wider set of tokens.

2nd problem: Even if people were using Ajna directly, managing short positions is an involved process (even more with leverage) which not many people can or want to handle. We make it very easy for users to open, monitor, manage, and close their short positions.

3rd problem: Ajna is a more complex protocol than Aave. Unlike a traditional margin position, the health of the positions won’t just depend on the price of the shorted asset (against the quote) and the amount of collateral, it will also depend on the state of the Ajna pool (i.e., the LUP, and the liquidity in the orderbook between the LUP and TP).

Our objective is to provide an easy-to-use interface that abstracts the complexity from the users while providing actionable metrics and notifications.

3. How will this project be a source of growth or success for Ajna? Please include a step-by-step summary of how you imagine the completed project will affect Ajna.

i. The project will attract TVL to Ajna by abstracting the complexity of opening, managing, and closing leveraged and unleveraged short positions. Shorting mid-cap tokens using only decentralized infrastructure has been impossible until now, and only and infrastructure like Ajna can enable it. Daily, about $10Bn of short volume is traded on mid-cap tokens on centralized exchanges.

For a sense of the potential, on a centralized exchange like Binance, the long short ratio for liquid pairs like BTCUSDT hovers around 1, which means that there are as many long positions as short positions (see Coinglass dashboard).

ii. The project will share revenues with Ajna, and use revenues to provide liquidity on Ajna pools. The funds assigned to providing liquidity on Ajna will provably not be used for any other purpose until year 5.

Year 1 to 3: 25% of revenues are sent to Ajna treasury. 25% of revenues are kept in a wallet dedicated to providing liquidity on targeted pairs on Ajna.

Year 4 and 5: 12.5% of revenues are sent to Ajna treasury. 25% of revenues are kept in a wallet dedicated to providing liquidity on targeted pairs on Ajna

We reserve the right to pick which pair to provide liquidity on. We will prioritize pairs that already have short demand, or new pairs that our users would like to short.

Going through the main user flows step-by-step assuming the user is looking to short PEPE-ETH for 1 ETH. Note that the user is shorting the pair PEPE-ETH, for her PEPE is the base and ETH is the quote, and we will use this convention below. It might be confusing to experienced readers because in the code, white paper, and documentation PEPE would be referred to as the quote and ETH as the base.

A. Open a position

  1. We check that there is an Ajna pool for PEPE-ETH (PEPE being quote as per Ajna definition). A pool with the base asset could in fact suffice to short (e.g., PEPE-DAI pool would do)
  2. We check that there is an AMM PEPE-ETH that has enough liquidity vs. the size of the trade. We use off-chain quant models to assess the risk
  3. The user chooses a health factor for their position. We use health factor because it is a simple concept to grasp for users. From this health factor, the LUP, and the liquidity around the LUP, we derive the price bucket at which the user will deposit their ETH
  4. The user gives an allowance of 1 ETH to the ShortyPool contract
  5. The ShortyPool contract deposits 1 aETH and borrows PEPE
  6. The ShortyPool contract exchanges PEPE against ETH on the AMM (if user wants to keep leveraging, or DAI, if it’s the last loop)

B. Trade with leverage
Users can then put the DAI or ETH back in Ajna, borrow more PEPE, sell PEPE against DAI or ETH, etc. We will provide “quantized” leverage to remain gas efficient and simple in a first iteration, i.e., the users will have the choice between different leverage multipliers but won’t be able to choose any value on a continuum.

C. Manage a position
The user can check the health of their position, and add collateral if need be. A healthy position has a health factor > 1. We compute the health of a position as a function of TP, the LUP, the liquidity between TP and LUP, and a liquidity benchmark to compare the liquidity between TP and LUP to.

D. Liquidations
If a position has a health factor < 1 on Shorty, they will be liquidated automatically on Ajna.

4. What is/are the objective(s)?
i. Increase Ajna TVL
ii. Solve the problem of shorting mid-cap tokens through a super easy-to-use interface for experienced and less experienced traders
iii. Re-use part of the revenues to directly provide liquidity to Ajna pools
iv. Provide advantageous token incentives to AJNA token holders

Tokenomics proposal
We want to incentivize Ajna token holders community to use and promote Shorty. We will put forward a proposal for a tokenomics scheme that would heavily benefit Ajna token holders.

5. What is/are the deliverable(s)?

Note that we split our original proposal into phase I and II. Phase I is the scope of this proposal, we will still keep enough details for phase II for community members to understand the roadmap.

Phase I
Smart contracts

  • ShortyPool: one contract for each pair. Managing all the short positions on that pair
    openPosition(uint256 _amount, uint8 _leverage)
    closePosition(uint256 _amount)
    addCollateral(uint256 _amount)
    removeCollateral(uint256 _amount)
    getHeathFactor()
    increaseHealthFactor(uint256 _targetHF)
    decreaseHealthFactor(uint256 _targetHF)

Interface
We will develop a minimal interface on a single pair so community members can test and provide feedback.

Phase II
Smart contracts

  • ShortyFactory: deploys a ShortyPool for a new pair
  • ShortyToken: shorty token contract + incentives for users and community members

Interface
User workflows:

  • Open short positions (if necessary conditions are met)
  • Choose leverage
  • Collateral management (add or remove)
  • Manage positions (increase or decrease health of a position)
  • Receive notifications about positions that are getting close to liquidation due to the pool state rather than price evolution
  • Close positions (unwind position and withdraw funds)

We will design the user flows in greater details, and will present them to the community for feedback, but to give you a sense, we would have a very simple interface:

6. What is the timeline for completing the deliverables?
Phase I to be delivered within 3-4 months. Bi-weekly updates to be provided on the forum.

Phase II will be about incorporating user feedback, making the product scalable (on any pairs, permissionless deployment), full audit, and building all the user workflows in the interface.

7. What level of support do you anticipate needing through the duration of the project?
We mostly expect support in testing the solution, providing feedback, and promoting it once feedback will be satisfactory. We will be putting forward incentives for Ajna token holders.

8. How often will progress reports be published to the forum?
We will provide updates on the forum twice a month. We will engage the community around the UX we are building and the choice of health metrics for short positions. After testnet launch, we will be actively seeking feedback and testers.

9. What are the estimated costs associated with the full completion of this project?

To allow us to deliver phase I, we need ask a little less than 50% of the total price we originally quoted, i.e., $160k.

  • Smart contract development cost: $60k
  • Off-chain quant models, notifications back-end: $60k
  • UX, Technical product management, tokenomics, and market-making program: $20k
  • Front-end development: $20k

10. If applicable, How will the project be maintained after completion of the grant?

The most important for the maintenance of the project is to create a business model. We are sharing revenues with Ajna, so the incentives are fully aligned between us and the Ajna token holders. We reserve the right to update the business model based on user feedback and market context.

We are proposing:

  • 50 bps cut of the traded volume
  • 200 bps cut of the profits our users make on profitable positions

Additional Information

11. How will you handle a delay in your project timeline?

  • We will inform the community as soon as we understand there will be a delay
  • We will provide transparency on the reasons for the delay
  • We will keep on delivering. We will complete the scope and might ask for retroactive funding if the delay is justified

12. How will you handle a scenario where the project can’t be completed due to insufficient funding or other factors?

  • If we realize within 1-2 months, give the funds back
  • If we don’t realize early, we will finish the project anyway and might ask for a retroactive grant if there is a good reason for the extended scope

13. How will you handle a scenario where the project is completed, but significantly under-budget?

We will give the extra funds back, or propose to token holders that we provide those funds as incentives via our interface

3 Likes

Thank you @pyramidmaker for the comprehensive and interesting proposal.

Initial Thoughts

  1. UX is high priority and shorting is a huge protocol use case. This proposal’s core offering has a good likelihood of significantly increasing protocol usage.
  2. Building up AJNA token liquidity is also a high priority. I am very glad to see that some portion of revenue will go into DEX liquidity. Any for-profit proposal should consider this structure.
  3. I’m excited about the AJNA tokenholder x Shorty tokenomics potential. Looking forward to the proposal.
  4. Glad to see you are committing to a high level of engagement with the community during the development. I hope our community is active enough in return. If this grant goes through I will do my best to help source individuals who could provide constructive feedback.
  5. The cost breakdown seems reasonable given all the components. At 325k USD, the ask should be more in terms of AJNA tokens. Right now they are trading at ~0.15 but I think the estimate should factor in some discount to that. At 0.10, it would be 3.25m AJNA tokens, about 40% of the total grant distribution for cycle 1. Let’s see what happens as we approach the submission deadline but I would consider breaking this grant into two (60% of funding from this cycle, 40% funding from next cycle). Additionally, given that it’s a large amount of AJNA, if the grant is given, I recommend finding a buyer OTC or setting up a DEX LP position to sell off tokens slowly.
  6. About the business model, you could do what Defisaver does and charge some amount for levering up or unwinding. Charging based on profit is interesting. Could be sufficient, but I think it’s important to generate some revenue from users who ultimately lose money as well. Product revenue being indifferent from user’s profits of losses is a more stable model.

Questions

  1. How costly is it to set up a new smart contract for a new pool pair? I imagine it could be as simple as 15 minutes of work, but I am curious to hear it from you guys. The essence of my question is whether this approach scales.

  2. What about “move”? I believe a direct change of price bucket is possible if the deposit isn’t frozen.

  1. What’s the difference between MM program and LP program? They sound like the same thing.
  1. What about beyond year 2? I would like to see a longer-term commitment or a deal that gives AJNA a better chance at generating decent token liquidity. What about something like the greater of 5-year revshare deal or grant + 50%.
  1. I understand the initial product is mainnet only. Will Shorty potentially be available on other EVM networks? Is this a path your team will consider taking?

  2. Not sure I understand this piece. So if AJNA-USDC pool pair trades 1m volume, and Shorty’s LP is 50% of the pool, then Shorty’s cut is .5% x 500k? And that comes out of where? the LP fees?

Summary

I like this proposal a lot. I think the price is relatively fair. I think a better deal can be worked out for the AJNA revshare/LPing part.

2 Likes

Thank you @Davidutro for your support and for your great feedback. Based on your feedback and the feedback from other delegates, we will also be updating shortly the proposal to break it down in two phases and update the revshare proposal.

We are answering your questions below.

1. How costly is it to set up a new smart contract for a new pool pair? I imagine it could be as simple as 15 minutes of work, but I am curious to hear it from you guys. The essence of my question is whether this approach scales.

Multiple users can use the same pool. New pools can easily be deployed using the ShortyFactory contract. Say a user wants to take a position on a pair that does not have a ShortyPool yet. Two cases. Either the pair already has an Ajna pool and then he can directly deploy a ShortyPool using ShortyFactory, or the pair doesn’t have an Ajna pool, then the user needs to create an Ajna pool and then deploy a ShortyPool using ShortyFactory.

The process of deploying a standalone ShortyPool on a new pair would take a couple of minutes. It should also take few minutes for a ShortyPool + Ajna pool on the relevant pair.

2. What about “move”? I believe a direct change of price bucket is possible if the deposit isn’t frozen.

The move functions are challenging to understand from the user standpoint. In that section we were simply listing the user workflows. The functions available to the user will be using concepts they know, i.e., increase the health factor of their position or decrease the health factor of their position, which be believe are rather self-explanatory and widely used in the space.

3. What’s the difference between MM program and LP program? They sound like the same thing

Thanks for calling this out, the naming was not very clear. Let us restart with a new convention:

Ajna token AMM liquidity program: We would take a share of our revenues that would go to a wallet that is 100% dedicated to providing liquidity to the Ajna token on a shortlist of AMMs pools. The intent is to increase the liquidity of the Ajna token itself on AMMs.

Ajna protocol liquidity program: We would take a share of the revenues to provide liquidity directly on the Ajna protocol. We would provide liquidity on the pairs that are the most in demand of shorting, or provide liquidity on newly opened pools to enable new shorting opportunities.

4. What about beyond year 2? I would like to see a longer-term commitment or a deal that gives AJNA a better chance at generating decent token liquidity. What about something like the greater of 5-year revshare deal or grant + 50%.

It sounds like a good way to align incentives in the long-term with the token holders. We will be updating the proposal shortly with a 5-year revshare plan.

5. I understand the initial product is mainnet only. Will Shorty potentially be available on other EVM networks? Is this a path your team will consider taking?

Shorty can be deployed on any EVM chain that has Ajna pools, and that has AMMs with decent liquidity for the pairs to be shorted. The shorting protocol will work best for pairs on which the liquidity on Ajna is relatively deep. Our approach will be to first develop on the chain that has the Ajna instance that offers the most liquidity, so most likely Ethereum mainnet.

Mobility won’t be a big issue, once we have a solution working on say mainnet, it will be a reasonable effort to deploy it on other EVM chains. In phase II, a multi-layer/chain interface will be important.

6. Not sure I understand this piece. So if AJNA-USDC pool pair trades 1m volume, and Shorty’s LP is 50% of the pool, then Shorty’s cut is .5% x 500k? And that comes out of where? the LP fees?

Let us go through a detailed example. Let’s assume Shorty charges 50 bps on trading volume and 2% on performance fees.

For the trading fees on trading volume:

  • Shorty user decides to invest 100k DAI on a short LINKDAI position
  • Shorty user sends 100k DAI to the LINKDAI ShortyPool contract
  • Shorty charges 50 bps (500 DAI): put 50% of it in the Ajna revenue share wallet (250 DAI), and put 50% of it in the Shorty treasury (250 DAI)
  • The 99.5k DAI are then deposited on Ajna to borrow LINK

For the performance fees on performance

  • say the user net position value is now 150k DAI because LINKDAI dropped. the user is happy with that result and wants to exit the position
  • when exiting, the ShortyPool repurchases just enough LINK to repay the user debt on Ajna
  • Shorty takes 2% cut (1k DAI) before sending the collateral and profits to the user: put 50% of it in the Ajna revenues share wallet (500 DAI), and put 50% of it in the Shorty treasury (500 DAI)
2 Likes

Disclaimer: Was requested to provide feedback

  1. At the end of the day, how much TVL or Revenue does the team think it can bring to AJNA community?

  2. What timeline does this cover? Because in such bull market, APY can be even higher but of course, it’s during bear market where APYs tend to be low.

1 Like

thank you @Doo_StableLab ,

  1. It’s a big addressable volume, in hundreds of $Bn per year. A reasonable objective would be to reach $1Bn volume within 12 months of launch.
  • There are dozens of $Bn of daily short volume on lower cap tokens, on centralized exchanges. Just as an example, PEPE has been hovering at $1Bn per day the past few days. See coinglass for some data. Let’s be very conservative and adjust for the fact that there is an insace amount of market making on those pairs, and say $10Bn per day

  • We would capture some of this market (centralized exchange), plus those who don’t want to trade on centralized exchanges, plus those who want to trade tokens that are not listed on centralized exchanges . We can take the spot proxy, DEX volume is ~ 10% of CEX volume, and discount it to 5% just for the sake of being conservative.

So, 5% * 365 * $10Bn lands us on a ~$180Bn addressable annual volume for Ajna. It’s a big addressable market, even if we want to be even more conservative.

  1. Hedgerly was launched in October so we went through both regimes. The strategy being hedged and the objective being to make a stable yield on providing liquidity to AMMs, it does not depend on the market and the yield was not affected when we transitioned from bear to bull. See the link to the stats
2 Likes

I verified the legitimacy of the team :))
Sam/Hexonaut is a reputable third party, he is the founder of Spark Protocol.

image

another 1

1 Like