TrailMix Loop

Automated risk management vaults for assets on the superchain

ETHOnline 2024Shipped August 23, 2024Prize winner#defi#infra#chainlink
Visit Repo
TrailMix Loop banner

About

Tired of rountripping your hard earned gains? Me too. Managing a crypto portfolio can be a 24/7 job. You’re constantly cutting losses and taking profits, trying to beat the market as it tumbles or soars. Either you stare at candlestick charts for hours, or you inevitably check your portfolio one day only to realize half of it is gone.

I built TrailMix for two reasons. First, TrailMix protects my most valuable asset: my time. By automating the management process (cutting losses and taking profits), I can go back to the fun parts of crypto: minting base colors, playing fantasy.top, and listening to the newest Rehash minihash episode.

Second, TrailMix removes the emotional labor of trading crypto. When the market swings, hope, fear, and greed can come into play and interrupt even a carefully thought out investing plan. TrailMix takes this off your hands, giving you the best chance at success.

TrailMix acts as a safety net for your assets, catching them (selling them) when they fall and following them as they rise. This ensures you take profits before your asset fully crashes, ending the cycle of roundtripping. With entirely onchain logic powered by Uniswap and Gelato, TrailMix uses trailing stop losses to safely and securely trade assets based on market conditions. By utilizing smart contracts that plug into Uniswap pools, we’ve made TrailMix usable on any asset on the superchain without having you give up custody of your funds.

TrailMix both manages to both sell assets to cut losses as well as buying back in when the market recovers. This makes TrailMix an entirely hands off solution for managing risk.

How it's made

TrailMix deploys individual vaults for each user strategy. These vaults use Uniswap pools as a time weighted average price (TWAP) price oracle. Chainlink's Ethereum price feed on enables TrailMix to calculate prices relative to USD instead of WETH (so pools against WETH still can be managed relative to prices in USD). Gelato network manages the upkeep of each vault, telling it when to buy, sell, or update a sell threshold.

Since integration testing would involve forking Optimism, writing tests, and managing dependencies, I decided to test manually with optimistic etherscan!

The front end is built in NextJs. The project was scaffolded with scaffold eth 2.

Prizes

  • Chainlink · Connect the World with Chainlink · Connect the World with Chainlink

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

ViVault

Automated crypto vault: on-chain volatility monitoring + auto-rebalancing. Your assets are protected

Smart Portfolios

A dApp that manages a crypto portfolio, like an ETF in the web3 context, offering: Expected returns Risk reduction Diversification benefits, it rebalances itself daily by a ML model

Agentic Risk Manager

An institutional-grade, non-custodial crypto portfolio risk manager that delivers real-time risk.