nipun.eth Profile picture
Sep 12, 2022 10 tweets 4 min read Read on X
1/ Just read @paradigm's blog on GOO: @artgobblers & its inflationary token Goo.

Some interesting game theory & neat #MATH tricks just fit together in the design.

Anyways, here's how you can earn the highest Goo emission rate. 🧵👇
2/ If you don't alr know what Goo is, just read this thread by @_Dave__White_.
3/ To get the highest Goo emission rate, first we need to understand that Goo emission is based on:
- Each Gobbler's multiplier
- Goo amount allocated to each gobbler (can be different)

The Goo emission rate will then be `sqrt(m*a)` , where m=multiplier and a=allocation of Goo.
4/ So, here comes the 2 questions:
1. Optimal Goo Distribution -- If you hold certain Goo amount and certain number of Gobblers, how should you distribute them?
2. Goo & Gobbler Pricing -- What should you buy? Gobblers or Goos?
5/ Optimal Goo Distribution

If you hold multiple gobblers (each with different emission multiple), the optimal way to distribute your Goo is to proportionally allocate to each gobbler based on the multiplier.

But why? Image
6/ Optimal Goo Distribution (cont.)

This directly comes from Cauchy–Schwarz inequality, where the equality occurs at the proportional allocation (a_i) to the multipliers (m_i).

So, given the Gobbler multipliers, you can efficiently allocate your Goos proportionally. Image
7/ Goo & Gobbler Pricing

The problem is, given $M, how should you spend this to earn the highest Goo emission rate?

To simplify things, we assume things can be bought fractionally:
- $1 can buy `X` multiplier for Gobbler
- $1 can buy `Y` amount of Goo Image
8/ Goo & Gobbler Pricing (cont.)

If you spend $A on multiplier, you can then spend $(M-A) on Goo.

You'll end up with AX multiplier, and (M-A)Y Goo amount. Image
9/ Goo & Gobbler Pricing (cont.)

So, your max Goo emission rate (from optimal distribution) = `sqrt(AX(M-A)Y)`, which is maximized at A=M/2 from AM-GM inequality.

This means the optimal strategy is to spend "half" the budget on Goo and "half" on Gobbler multipliers. Image
10/ Goo & Gobbler Pricing (cont.)

NOTE: This is just a simple model of how you would get the best emission rate given a budget. In practice, Goo & Gobbler price may vary, so use the strat at your own discretion.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with nipun.eth

nipun.eth Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @n1punp

Jun 10, 2022
1/

I’ve been interested in Zero-Knowledge Proofs (ZKP) for some time, but it’s quite complex and hard to understand.

So, just wanted to share how ZKP works specifically in @TornadoCash magical blackbox.

🧵👇 Image
2/

Before diving in, let’s start with:

What’s ZKP?

[Wiki] Zero-Knowledge proof (ZKP) is a method for a “prover” to prove to another part (“verifier”) that a statement is true, without revealing any additional information apart from the fact that the statement is true.
3/

There are actually many types of ZKP, including

➡️ Multi-party computation (MPC) – aggregate a result from each party, without revealing each party’s info e.g. finding the total number of patients from each hospital.
Read 10 tweets
Dec 9, 2021
1/ We @AlphaFinanceLab has just launched our new product #AlphaX on @avalancheavax network 💪.

x.alphafinance.io

With the new concept, here's a 🧵 on how #AlphaX actually works 👇
2/ Key components:

1️⃣ LONG & SHORT Strike Tokens
2️⃣ Mint & Redeem
3️⃣ Liquidation
4️⃣ Oracle price
5️⃣ Price peg
6️⃣ Arbitraging
3/ 1️⃣ LONG & SHORT Strike Tokens

LONG Strike Token is like **AVAX-55**

The #StrikeToken price should be pegged to ( $AVAX price - $55).

✅ As simple as that.
Read 14 tweets
Dec 8, 2021
1/ 📢 #AlphaX is now LIVE on @avalancheavax mainnet 🎉🎉🎉

✅ Take Long or Short positions on $AVAX or $WETH with leverage
✅ High capital efficiency
✅ Tradeable #StrikeTokens
✅ Earn high APY from liquidity mining 💰💰💰

x.alphafinance.io
2/ 💡 #AlphaX introduces a new concept of #StrikeTokens.

📈 LONG Strike Tokens: $AVAX-X & $ETH-X
📉 SHORT Strike Tokens: $Y-AVAX & $Y-ETH

These tokens are ERC-20 compatible, and can be supplied & traded on @traderjoe_xyz.
3/ 🔀 Mint & Redeem

➡️ Anyone can use $USDC to **mint** any pair of LONG and SHORT Strike Tokens.
➡️ Anyone can use any pair of LONG and SHORT Strike Tokens to **redeem** the underlying $USDC back.

#AlphaX is **fully collateralized**.
Read 8 tweets
Sep 3, 2021
1/ ☀️ Gm

📢 Introducing #AlphaBuyWall (ABW), a smart contract that allows anyone to bid for NFT, and provides a ⌊price floor⌋ for NFT.

2/ Why sell on ABW?

As NFT holder, selling your favorite avatar is a PAIN with existing tools. You will have to set sell price and wait for buyers.

Worst case = you wait for weeks and keep being frontrunned by other sellers. 😢

On ABW you sell via smart contract at any time.
3/ Why buy on ABW?

Currently to get a hold of trending NFTs, you'll need to keep refreshing the browser until someone decides to sell their bag. If the price is cheap enough then you scoop it up.

NGMI 😔

ABW is a faster and cheaper way to bid for your favorite NFT collections
Read 8 tweets
Apr 23, 2021
1/ 🐛 📝 🥞 🆚 2️⃣

🚨 Smart Contract Bug found in Pancake V2 🚨

🐛: Pancake new router is incompatible with Pancake LP implementation.

Users may get __revert__ txs upon __swaps__ due to the bug.

Vulnerability was reported to @PancakeSwap team asap.

Thread below 👇
2/ After @PancakeSwap V2 announcement, we have been working on supporting the new V2 pools.

✅ As with our security standard, we always perform smart contract review and testing, to ensure our users’ safety.

❗️ We have found and informed the @PancakeSwap team on the issue.
3/ 🐛 So, what is the actual bug?

The question comes down to: what changes from Pancake V1 to V2?

1️⃣ Swap fees: 0.2% ➡️ 0.25%
2️⃣ Fee distribution to LPs, to dev address

Below are the router __getAmountOut__ implementations (V1 & V2). The difference lies in the numbers. ImageImage
Read 11 tweets
Mar 28, 2021
1/ 📖 Just read @Uniswap v3 whitepaper 🦄 and wanted to share some thoughts.

👀 There are some pretty neat tricks in the paper that we @AlphaFinanceLab also use. 👀

Thread below 👇
2/ Overall, 🦄 V3 is a huge upgrade from and much more complex than V2. V3 introduces:

👩‍💻 User Flexibility: Users can supply within a specified price range.
💻 Protocol Flexibility: Configurable swap fee & governance fee
💡 Features: Built-in TWAP & liquidity oracle
3/ The most interesting feature is that users can supply liquidity to any desired price range, which then enables the __Concentrated Liquidity__ feature, as advertised.

🤔 This is a challenge in terms of technical implementation, since gas limits may explode if done naively.
Read 18 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(