revo-market / contracts Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
We should add a check to ensure that the end-tokens in each path correspond to the correct token0/token1 that comprise the LP token
so we don't need to deploy a new RevoFees contract every time we want to update the withdrawal fee
As an end user, I need to be able to get an LP and deposit it into a "meta" farm bot in a single step.
Eng:
the flow should include the following steps:
AC:
there needs to be an interface which will help us implement different farm bots for different DEX's
there are probably methods that are DEX-agnostic that can be put into an abstract class as well
and potentially different rewards contracts for the same DEX, for instance the single-rewards contract used by some Ubeswap farms
AC:
their implementation is here: https://github.com/beefyfinance/beefy-contracts/blob/master/contracts/BIFI/strategies/Sushi/StrategySushiLP.sol
it would be useful to de-risk our implementation of the "farm bot" contract by borrowing as much as possible from theirs
Right now, farm bot names are hardcoded; we should be able to set the contract name as a parameter.
Currently the IRevoBounty interface doesn't have a method for calculating additional bounties before claiming, which means that previewBounty
in the farmbot contract can't provide info on additional bounties.
we should run unit tests and formatting checks before enabling merges
3 of the top 5 farms by TVL on Ubeswap have just one token for rewards.
Single-token rewards contracts are different than the multiple-token rewards contracts, so I think we may need to create a new Farm Bot contract to support them.
AC:
just for practice
should probably be on mcUSD-mcEUR
will involve deploying a new MoolaStakingRewards contract first
AC:
need full unit test coverage on all our contracts
In particular, make sure the last token in the swaps path is what we expect (a staking token)
how many tokens will exist in total, and what will the starting price of a token be in our IDO? Note that the starting price times the amount of initial liquidity will determine the capital needed for initial liquidity.
note that allocation is out of scope for this issue, see #60
Beefy docs reference a possible exploit that their withdrawal fees are designed to prevent: https://docs.beefy.finance/moo/ecosystem/products/vaults#what-is-the-vault-fee-structure
We should evaluate this threat and determine whether it applies to our use case.
we need a breakdown of how many gov tokens will go to which things.
note that the total number of tokens isn't in scope for this issue.
ubeswap shared their allocation here, we can largely copy from it I think, although I'd like to see the "team" tokens go to a time lock for vesting instead of straight to us
We need to be able to test our contracts on a local chain, against "dummy" contracts. This issue is for getting the framework/proof-of-concept set up that allows us to write tests using this approach.
users may want to know what the new fees are when they are updated
AC:
mainly to make sure the "generalize" issue actually works
AC:
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.