TheRyanMiller / Zap-SLP-YVECRV-ETH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zap to go from ETH or CRV to Pickle Jar: SLP YVECRV/ETH

This zap allows a user to make a single sided deposit via either ETH or CRV. Zap will follow the most economically efficient route to get user into a Sushiswap ETH/yveCRV position and then deposit into the associated Pickle Jar.

Tests

Tests should be run separately because each throws DEX pair balances off considerably. We want each to start fresh with actual pair reserves.

  • For ETH zaps: brownie test tests/test_zap_eth.py -s
  • For CRV zaps: brownie test tests/test_zap_crv.py -s

Requirements

  • Zap from ETH
  • Zap from CRV
  • Dust for all zaps never exceeds 1e12
  • Detect optimal route to yveCRV: vault deposit vs swap

Zap ETH Route

Zap CRV Route

About

License:GNU Affero General Public License v3.0


Languages

Language:Solidity 50.6%Language:Python 49.2%Language:Shell 0.3%