Skip to content

Instantly share code, notes, and snippets.

@poolpitako
Created June 1, 2023 22:10
Show Gist options
  • Save poolpitako/88f006281dd634e89483e6496fc575e7 to your computer and use it in GitHub Desktop.
Save poolpitako/88f006281dd634e89483e6496fc575e7 to your computer and use it in GitHub Desktop.

Dinobots budget report

This report is for yearn/budget#111

Time: March-April-May

Updates for the new budget request

Updates and rationale for renewal of budget request

Infra cost

We budgeted 1K per month in server cost and we could lower it month by month. We will now budget 500 per month instead.

One less full-time contrib

Tonkers is leaving the team, reducing the budget -20k per month

External contribs + Expenses

We believe it was a good idea to leave money aside for external contribs and general expenses of the team. Getting together was a nice push forward. We are going to ask for 7k instead of 10k since Tonkers will not longer be with us, and we should have less general expenses. We are committed to the external contributors pool, and we are excited what individuals in the cantina can help us with!

Progress Report

It sucks to do this after 3 months, but here we go.

Updated settlement contract

Updated our weiroll settlement contract with better gas usage and more security on execution.

Private liquidity with tether

Private liquidity contract with the XAUt token

Work with ondo.finance

Added support for flux tokens in the solver

Balancer pools

Added balancer pools as a source of liquidity

yCRV minting flow

Now yCRV is not only traded, it is minted when price is better.

sdCRV support

Added StakeDao CRV support in similar way yCRV is implemented

Added crvwsbtc pool

Curve custom pool which had to be added manually (doesn't come properly from the API)

Created a metadata-service

Instead of metadata parsed on every instance, now we have a unique API cached through redis. Metadata is updated every 15m.

Implemented score system

Cowswap settlement now uses a score to decide which solver wins. Now our solver provides a score based on how good we thing the solution is.

Added Tenderly simulations

We started doing single hop and full settlement simulations to understand gas cost better.

To support this update we had to develop a util to identify storage slots in different ERC20 implementations to be able to override allowances and balances during simulations https://github.com/pata-eth/token_storage_slot_finder

Single-hop order settlements

Implemented the settlement of single-hop orders that are not cowed with multi-hop orders in cowswap's settlement contract. This change decreases the cost of executing these swaps, making seasolver more competitive.

Batch Optimization Research

We researched potential improvements to the solver that could make it more competitive. Some of the findings are WIP; 30% work done. https://hackmd.io/@pata/B1cSXnmy3

Native ETH

Support to sell and buy native ETH.

Performance improvements

  • Added redis for caching
  • Avoid parsing uneeded fields
  • Separated quote from solve instances

Reduced infra cost

  • Removed tracing
  • Reduced uvicorn logs
  • Fixed routing

Contracts with funds/liquidity

  • 0x2C01B4AD51a67E2d8F02208F54dF9aC4c0B778B6
  • 0xb634316E06cC0B358437CbadD4dC94F1D3a92B3b
  • 0x9e899bA1FbD55923121a47Db5800B1F532E63D4B
  • 0xA82ecEf591Cf6a9cBf99Ce829f15b8591cEAb1EB

Revenue sent to treasury

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment