Ammalgam (δ, γ) (@ammalgam) header
Ammalgam (δ, γ) (@ammalgam) profile picture

Trade your impermanent loss for permanent gain. Lend, trade or leverage any asset without oracles. Live now: https://teapawt.org/t.co/2eend1xsPf

Joined May 2022
Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)Photo by Ammalgam (δ, γ) (@ammalgam)
Ammalgam (δ, γ) retweeted
Quick demo of how you can take vault tokens in our product to get more vault tokens by borrowing against them in our vault-underlying pair
1
11
529
Ammalgam (δ, γ) retweeted
There is this recurring theme, too much leverage and oracle manipulation. These problems were exactly why we designed Ammalgam the way we did. - no oracle - loans limited by the known trading liquidity for the collateral debt tokens. We automated risk management.
2
1
12
842
Ammalgam (δ, γ) retweeted
Ammalgam Vaults allocate a small portion of assets to market making. Think about it as reverse concentrated liquidity. With market prices returning to the mean, we went from fighting IL with fees, to just the fees. 30 day yields: USDC 10.96% WETH 5.18%
2
3
10
583
Ammalgam (δ, γ) retweeted
The big price moves this week was the first time we saw our Quadratic Swap Fees work. The only volume right now is arbitragers. 20% APY on swap fees on the first day of volatility just getting arbed. How do Quadratic Swap Fees work? Here a breakdown...
1
2
10
413
Ammalgam (δ, γ) retweeted
Would be neat if - don’t trust any oracle, let the market trade receipts and that informs the value - loans shouldn’t outpace the trading liquidity needed to liquidate them - Thin liquidity for trading needs to be properly incentivized for supporting liquidations who’s working on this? I will give you a hint.
How an RWA credit facility blows up 1. You deposit USDC into an onchain credit facility and get a yield-bearing stablecoin in return ("USDX"). USDX is backed by a portfolio of loans to offchain borrowers, according to the marketing. 2. USDX's issuer creates a Morpho market where you pledge USDX and borrow USDC, up to a 91.5% LLTV. You go to Morpho, post your USDX, borrow USDC, buy more USDX, and repeat. You now have 10x leverage. 3. Morpho values USDX using the portfolio’s NAV, relayed onchain by a “Verified NAV Oracle.” The oracle doesn't verify that the loans are worth that amount, or that the collateral can be liquidated. They pass along the issuer's self-reported NAV, which increases mechanically at par plus the coupon rate. If you bought on Day 1 at $1.00, and the annual coupon was 7%, it would be worth $1.07 on Day 365. 4. The borrowers begin to deteriorate offchain, payments stop flowing in, covenants are busted. Your Morpho position looks fine because the USDX price from the oracle continues to increase. 5. Finally the issuer marks down the NAV, on the quarterly schedule. Assuming a 91.5% liquidation threshold, a position at 90% LTV only needs a 1.64% decline to be liquidated. Several looped positions immediately fall underwater. 6. The markdown causes a run. USDX holders submit redemptions at the published NAV. The issuer pays the first redeemers from its cash sleeve, leaving the remaining token supply backed by a less liquid loan book. 7. Once the cash is exhausted, the issuer pauses redemptions, or begins selling loans at a discount. USDX is listed on DEXs - to facilitate orderly liquidations in situations like this - but it trades far below NAV because it can no longer be converted into cash. 8. On Morpho, USDC suppliers withdraw the remaining liquidity, causing borrowing rates to spike and pushing the debt positions further underwater. 9. A liquidator shows up and buys USDX, repaying a portion of the debt. They try and trade it on the DEX but it can't absorb the volume. They try and redeem directly with the issuer but they are stonewalled. They find out the token doesn't actually represent a legal claim on the collateral, or really anything, despite what the marketing said. 10. No other liquidators show up. At a 91.5% LLTV, the liquidation bonus is only ~2.6%, not nearly enough to step in and pursue recovery. 11. You lose your initial investment. The CEX "Earn" depositor who unknowingly funded the whole operation (via an embedded curator vault), loses their entire position.
3
1
6
442
Ammalgam (δ, γ) retweeted
Large liquidations do not just close risky debt. They can create new market stress. In shallow markets, the stress can be critical. A 🧵 about how Partial Liquidations break up risk in chunks rather than executing all at once.
2
3
11
366
Ammalgam (δ, γ) retweeted
We have been lending WETH and USDC without oracles for a month now. We use various TWAPs storing prices from the DEX to no what the assets are worth. There are multiple layers of protection against manipulation, but this 🧵 is specifically about how we use TWAPS.
1
1
9
484
Ammalgam (δ, γ) retweeted
Using v3-4 for passive LPs marketed to passive lps as "if you like your doctor, you can keep your doctor", because you could still use it with inf range like v2. V2 is still a large percentage of Uni TVL, so why dont people upgrade? V2 out performs v3 for passive ranges!
6
3
3
41
5,084
Ammalgam (δ, γ) retweeted
Trading and lending in one protocol means one shared state managing both. The @ammalgam bug bounty is live. Researchers are already digging in. If you've ever wanted to see what happens when 2 financial primitives share liquidity, this is your playground: cantina.xyz/bounties/b5e376e…
4
4
1
23
5,409
Ammalgam (δ, γ) retweeted
Part two of my conversation with @duelinggalois, founder of @ammalgam, is now live. We discuss oracle-free DeFi, short selling, cascading liquidations, dynamic swap fees, and why Ammalgem takes a different approach to concentrated liquidity. It is a really neat project and an eye-opening look at how DeFi works. See the link in the comments below.
🤖 Made with AI
4
2
1
7
448
Ammalgam (δ, γ) retweeted
DeFi Frontier is live 🚀 We cover: ✅ 30D yield, TVL changes, benchmarks ✅ @ammalgam goes live! ✅ @kpk_io USDC Yield Vault ✅ @Yieldzio leverage ✅ @3janexyz levered callable capital ✅ @re redemptions ✅ ethereum:0x643c4e15d7d62ad0abec4a9bd4b001aa3ef52d66 deep dive ✅ STRC update All here 👇 the-edge.xyz/p/defi-frontier…
9
5
41
2,064
Ammalgam (δ, γ) retweeted
We have entered phase 3 of the launch, and our valut assets are gradually being moved into our the protocol. So whats next? We are looking for vault curators or operators that would like to help us with a POC of how Ammalgam can unlock leveraged exposure for their users: - Create a pair vault token-vault underlying asset - User deposits vault token and borrows vault underlying asset - User borrowed vault underlying assets are deposited into vault stacking yield Vaults unlock new TVL and can use the pair for immediate redemptions through swaps on the vault token allowing for less assets needed for immediate redemption. If this is interesting to you please reach out.
1
1
1
11
1,120
Ammalgam (δ, γ) retweeted
Fun fact, @ammalgam does not take a protocol fee on swaps, and never will! Only lending fees go to protocol fees
Uniswap Labs is officially proposing cutting UniV4 liquidity providers share of fees by up to 33%. Interesting they’re offering to take less on just one chain: the one @aeroxyz dominates. A reality they’ll face on more chains #soon. 🛫 gov.uniswap.org/t/temp-check…
2
1
23
2,222
Ammalgam (δ, γ) retweeted
If an idea is excellent in its simplest form, it becomes something special when worked on. @ammalgam was excellent as a spreadsheet. We built the MVP from that math, @duelinggalois spent 4 years building it out, and today it’s live on Ethereum mainnet. Congrats team
Ammalgam is LIVE on Ethereum mainnet. Trade impermanent loss for permanent gain: ammalgam.xyz
1
5
1
15
547
Ammalgam (δ, γ) retweeted
I am very proud to announce that we have launched the @ammalgam protocol. I have spent the last 4 years building a simple idea, a dex coupled with a lending protocol to create capital efficiency for dex liquidity providers, and the utility to borrow anything. There is a lot to say from a technical perspective about the construction of various elements of the protocol. It is complex, this was the cost of building something that can theoretically support borrowing on any token. Decoupling off-chain crypto trading data from lending markets is a critical step to unlock decentralized finance. Some critical features: - Dex trading assets are automatically lent out in the integrated lending protocol to earn swap fees and lending fees - Dex trading assets can be used as collateral to borrow against, unlocking neutral, long, and short market making, and leveraged liquidity. - Leveraged market making is similar to concentrated liquidity in its effect, but uses borrowed assets rather than a protocol mechanism - Users can borrow dex liquidity shares to allow for turning impermanent loss into impermanent gain. - liquidity is fungible allowing for both simpler math for borrowing calculations and easier matching of users needs, similar to the advantages of perps over options. - Swap fees scale with price change impact rather than swap size to allowing for algorithmically pricing informed vs uninformed order flow to the dex. Additionally making it expensive to manipulate the price - A series of protections are in place to protect the concept of price from manipulation, using a price range from multiple twap lengths and spot price, pricing assets with the worst price in that range for ltv calculations, and limiting recorded prices in the twap to move 10 ticks per block to ignore outliers. - Each new loan is checked for its impact to liquidation risk by bucketing the price curve into 25 tick tranches and capping how much potential liquidation risk can be supported in each tranche by pool swap reserves in case of cascading liquidations. - Debt spanning multiple tranches can be liquidated in chunks, one tranche at a time using a dutch auction that increases the premium as the ltv of that chunk increases. This ensures that massive loans are not at risk of destroying the price by being liquidated all at once (👋 @newmichwill). Perhaps some will say that the design and concept we put forward is similar to something else. This is likely true in many facets of what we built, we surveyed everything that has been built and took ideas from everywhere, this wouldn't be possible without the free sharing spirit of open source code. As such all contracts are open source and available to view on etherscan. We spent a tremendous amount of time and effort working to fix all the issues we could find. Perhaps it was enough effort, perhaps it was not. Today marks the start of the final audit and the start of our ability to find product market fit. Today ends one chapter and start the next. I am looking to get in touch with: - Creators of tokens - Vault operators - Providers of on chain market making liquidity - Anyone who has used a lending protocol before on chain - Swap aggregators - Searchers - And anyone else who is curious about how to leverage what we built
Ammalgam is LIVE on Ethereum mainnet. Trade impermanent loss for permanent gain: ammalgam.xyz
39
30
8
144
26,257
Ammalgam (δ, γ) retweeted
The State of Security in DeFi and Ammalgam’s Approach Security has always been one of DeFi’s defining challenges. This is the lens we’re using as we walk through Ammalgam’s security approach.
3
4
1
18
748
Ammalgam (δ, γ) retweeted
Web2 is unsafe too. Nobody stopped banking or shopping online. We accepted that the human layer would always be the easiest thing to attack and started building systems around that reality. I think DeFi is reaching the same point. We're focusing too much on smart contract exploits alone. Meanwhile, attackers are targeting laptops, private keys, credentials, dependencies, and development pipelines. You can audit code for a year and still lose funds because a developer dumped some of the code into Claude to ship faster, or an employee signed into a company account from a public WiFi network while traveling. I don't think DeFi is doomed, because the threat model has changed. But we do need to rethink security. The protocols that survive will be the ones built around a simple assumption: Compromise is inevitable. Resilience is a design choice. teapawt.org/maraoz/status/20594134…
PSA: I now consider *all* of DeFi unsafe. Coding agents are superhuman at finding vulnerabilities, and smart contract security is too asymmetric: defenders need to fix every bug while attackers need just one exploit to steal funds.
1
9
350
Ammalgam (δ, γ) retweeted
5x more risk for 3x the reward. That's what Uni UI forecasts for their v3 ETH-USDC vault. V2 ETH-USDC is at 2.5%. Less than HODL'n and lending the underlying on Morpho, Euler, or Spark. Zero premium for IL risk. V3 is WORSE! A 🧵 of the problem and how @Ammalgam fixes it
Passive LPing is pretty fun When v3 deployed on Optimism 4 yrs ago I made a concentrated position on eth/dai from 1400-3200 I've never rebalanced, it was out of range ~30% of the time It earned $5400 in LP fees on $4700 position size so far
1
3
1
11
1,625
Ammalgam (δ, γ) retweeted
There are two major bets I have made in my life. The 1st was quitting a job in 2017 with nothing to fall back on except a handful of zero-interest credit cards to learn to code. The 2nd was quitting my kush engineering job to work in DeFi the same week Terra blew. I walked away from a hefty retention bonus a few months before Microsoft bought my previous employer. I remember trying to recruit engineers to work with me. They all said startups were too risky. Funny, most of them have been laid off from their safe jobs. I kept building through an atrocious market, through commitments evaporated into the Luna black hole. I kept building when I didn't know if we would have enough money to finish. And I will keep building until someone forces me to stop. I bootstrapped. I lent out my own money. I deferred compensation. My team saw my sacrifices, and I was humbled that they followed my example. I put the first money into our vault launch, and I will take that same money and use it to bridge us to pmf. I tried and failed to find a balance with my personal life and relationships to prioritize success. I did this all as a solo founder with no one to meet me halfway. I believe in what I am building because this industry repeatedly shows the cost of its inadequacy. Working on a protocol that is designed to survive contact with reality has given me greater purpose and meaning because I know what I am building will have an incredible impact on users. I am not driven by vanity metrics, the industry has enough of that. What matters is creating an improved primitive that holds under stress, whether users remain protected when volatility spikes, and whether the design still works when narratives disappear. That is the standard we are building against.
1
2
1
24
1,076