Giter Site home page Giter Site logo

alchemix-finance / v2-foundry Goto Github PK

View Code? Open in Web Editor NEW
79.0 79.0 31.0 3.17 MB

Foundry-based repo for V2 tools, expansions, new vaults, and surrounding infrastructure.

License: MIT License

Solidity 76.07% Shell 0.09% Makefile 0.23% TypeScript 23.61%

v2-foundry's People

Contributors

0xfoobar avatar 0xtao avatar bugduino avatar hesnicewithit avatar massun-onibakuchi avatar odyslam avatar thegreatgildo avatar thetechnocratic avatar toyv0 avatar wschwab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

v2-foundry's Issues

Gauge: create Gauge contract

Base contract for all derivative gauges.

veALCX can be staked for voting power
MANA can be burned for voting power
2 week (configurable) epochs

start with a curve gauge controller

create veALCX contract

NFT
user locks gALCX between 0 and 52 weeks
2 week unlock period where user has no power
overall power linearly declines over the course of the lock
user can ragequit to receive a percentage of their locked ALCX based on how much time is left in their lock
generates MANA, claimable by the NFT holder
delegateable power

create RevenueHandler contract

receives protocol revenue from all sources
buys alAssets according to gauge vote weights
calculates user claiming rights based on veALCX power and gauge votes
allows users to claim their boosted yield by burning purchased alAssets

Aave v3 sidecar

add sidecar contract to accept OP.
keeper function to donate() OP to alchemist depositors.
keep track of yield tokens and how much OP they generate in the sidecar.

add a keeper contract.

create ALCXGoverner contract

model after / fork GovernerBravo

read veALCX power from a user's veALCX NFTs
veALCX power is total real power plus total delegated power

Gauge: create ALCXEmittooor contract

inherits IEmittooor interface

allows users to stake a specific token
allows users to claim the reward token
onReceive, update the epoch's emitted funds

can probably repurpose curve gauge (synthetix StakingRewards)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.