alchemix-finance / v2-foundry Goto Github PK
View Code? Open in Web Editor NEWFoundry-based repo for V2 tools, expansions, new vaults, and surrounding infrastructure.
License: MIT License
Foundry-based repo for V2 tools, expansions, new vaults, and surrounding infrastructure.
License: MIT License
whitelist consists of codehashes instead of addresses
https://bugs.immunefi.com/dashboard/submission/10418#actions
Line 245 in TransmuterV2.sol,
ITransmuterBuffer(buffer).withdraw(underlyingToken, amount, msg.sender);
should be
ITransmuterBuffer(buffer).withdraw(underlyingToken, amount, recipient);
inhertis IEmittooor interface
onReceive, forwards funds to a StakingPools contract by calling the necessary function
Inherits Gauge contract
TRIGGER distributes ALCX to IEmittoooor
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
https://bugs.immunefi.com/dashboard/submission/10508
File: ATokenGateway.sol
Function: withdraw(address yieldToken, uint256 shares, address recipient) external override returns (uint256 amountWithdrawn)
The definition of uint256 amountWithdrawn within the withdraw() function in line 55 shadows the declaration of the named return value amountWithdrawn.
Therfore the return value stays uninitialized, i.e. 0.
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
from scoopy:
hey, found something that I want added to the stakedao controller, the vote_for_gauge_weights function. it will allow us to vote on the stakedao gauges, which will give us more sdt rewards for our sdCRV staked. Here's their gauge contract for reference.
https://etherscan.io/address/0x75f8f7fa4b6da6de9f4fe972c811b778cefce882#writeContract
https://bugs.immunefi.com/dashboard/submission/10509?resolvedFilter=unresolved
File: StaticAToken.sol
Function: metaDeposit(...) external returns (uint256)
The function should return "The amount of StaticAToken minted, static balance" according to the NatSpec function documentation, but it always returns 0 because no return value is specified.
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
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.
Inherit Gauge contract
TRIGGER stakes 3rd-party protocol token power to 3rd-party protocol gauges
model after / fork GovernerBravo
read veALCX power from a user's veALCX NFTs
veALCX power is total real power plus total delegated power
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)
should look the same as SDTController. need to delegate to snapshot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.