opty-fi / earn-protocol Goto Github PK
View Code? Open in Web Editor NEWCore smart contract of OptyFi's Earn protocol
License: GNU General Public License v3.0
Core smart contract of OptyFi's Earn protocol
License: GNU General Public License v3.0
The harvest finance adapter requires the vault contract to get white listed. This changes needs to be done in the test cases if the same.
Please refer defi-adapter-kit for inspiration.
This is with respect to this PR.
_getBestAPR
is handling the edge for WETH token as of now. However, if using getTokenConfigBySymbol(symbol)
of Compound, then MKR
token's edge case can be added as MKR contract returns MKR's symbol's hash and not "MKR" as string.getTokenConfigByUnderlying(token)
with an exception for MKR. However, this function also returns error right now for MKR token address and therefore needs more exploration.Two new functions:
withdrawFor
depositFor
The purpose of these functions is to permit a contract to perform a withdraw
or deposit
function on behalf of a user - in particular it is useful for tracking deposits/withdrawals made by LimitOrder
contract suite on behalf of users (order.maker
).
There is uncertainty of protocols distributing rewards. This should be handle dynamically by making web3 calls when test cases are executed.
This refactoring to dynamically determine the status of reward distribution can be applied across other protocol adapters as well.
This is with respect to this PR.
Vault.sol
Vault.sol
stating the edge case scenario when last step step is curvesetOPTYDistributor(msg.sender)
from constructorProblem
MultiCall
contract, it does not consider return values if any protocol returns on deposit.MultiCall
contract, it does not consider return values if any protocol returns during withdraw.Possible Solution
This PR has been closed due to DyDx Solo Layer 1 winding down. (https://dydx.exchange/blog/layer-1-wind-down)
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.