dhedge / dhedge-docs Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Integrate dHEDGE in Mask plugin
5000 USDC
On one side there's many KOL/Managers on twitter, and on the other side there's many pools on dHEDGE and we would like to find a way to link it together:
Twit: https://twitter.com/dHedgeOrg/status/1375554472345174016
KOL/Manager: https://twitter.com/PerceptronCap
Pool: https://app.dhedge.org/pool/0x3a4851597f36f459b58e65c55c8f3a8710313fc7
Pool Token: https://etherscan.io/token/0x3a4851597f36f459b58e65c55c8f3a8710313fc7
Create a new dHEDGE plugin that similar to the current Gitcoin plugin, which will detect links from https://app.dhedge.org/pool instead of https://gitcoin.co/grants and show the pool information, trade to invest with SUSD and plot the chart using the existing Mask chart plugin to be consistent.
There would be 3 tabs:
Donate
button would be the Invest
button. Before clicking the invest there's Enable
button for approving the SUSD token as in reference image. After clicking invest would pops up to invest with SUSD. And there would be a link with Get SUSD
which jumps to the second tab.Please include demo to show the integration is working.
Winners will be announced at the conclusion of Open Defi Hackathon
Upgrade dHEDGE in Mask plugin to V2
$2500 ($1250 Mask from Mask Network and $1250 DHT from dHEDGE)
Staging URL: https://dh-pre-prod.web.app
Example Polygon pool: https://dh-pre-prod.web.app/pool/0x09b99c546acfc7b355a9ebec58bf1e83a04b0acd
Steps:
1: get poolManagerLogic address from a pool address (pool address should be from the URL same as V1) :
poolManagerLogic = await PoolLogic.attach(pool).poolManagerLogic();
This will detect if it's Polygon pool as on ETH V1 there's no method poolManagerLogic()
2: get deposit assets from poolManagerLogic:
await poolManagerLogic.getDepositAssets();
3: select from the drop down of the available deposit assets and deposit:
await PoolLogic.attach(pool).deposit(asset, amount);
4: get xxx option from Sushiswap
Please include demo to show the integration is working.
Winners will be announced at the conclusion of Open Defi Hackathon
Create an automated trading strategy on-top of dHEDGE V2 Polygon pools utilizing the new dHEDGE V2 SDK.
$5000 USDC
The rollout of dHEDGE V2 allows for new types of strategies that managers and traders can explore by leveraging Polygon and Sushiswap. To give developers an easy to to integrate with the V2 protocol, we've released the v2-sdk npm package. Feel free to read about the V2 SDK in our Medium post.
Some ideas you may want to think about integrating are: Chainlink price feeds, prices/ratios of Sushiswap pools, Yield Farm APY's on Sushiswap, etc. To help get started, you can also take a look at our v2-sdk example boilerplate repo for getting an idea of how to start working with the V2 SDK with Express.
Example: The dHEDGE Stablecoin Yield Pool utilizes the V2 SDK to automate a stable yield strategy. With a focus on optimizing stablecoin yields, this pool will switch farming pools when higher stable yield opportunities arise over time, ensuring optimal performance.
*Note: if your automated strategy is doing well, investors may eventually find themself wanting to park their capital with your pool allowing you to earn manager fees.
Please include a link to your Pool
Winners will be announced at the conclusion of Open Defi Hackathon
[Bounty] Create Dune Analytics Dashboard with dHEDGE V1 data on Ethereum
$3000 USDC
Create a dashboard with dHEDGE V1 data on Dune Analytics on Ethereum similar to the dashboard for mStable here https://dune.xyz/derc/mta-community. Including the following but not limited data:
dHEDGE Factory on Ethereum mainnet: 0x03D20ef9bdc19736F5e8Baf92D02C8661a5941F7
Contract public repo: https://github.com/dhedge/dhedge-contracts
dHEDGE Factory ABI: https://drive.google.com/file/d/1NCRm-OsU7EX87yaUoC-uyvL6zlq2kTrl/view?usp=sharing
Please include a link to the dashboard
Valid submission requires showing Dune Analytics dashboard including but not limited the above data.
Winners will be announced at the conclusion of Open Defi Hackathon
Add new data for dHEDGE Pools in the subgraph
5000 USDC (ERC20)
At the moment, a Pool's performance (%) on dHEDGE is calculated via our internal backend API. Ideally, this data should be accessible to any developer so the protocol could be adopted in more front-ends/other systems.
The dHEDGE Subgraph needs a new variable performance
to be added onto the Pool
entity.
Performance should represent the pool manager’s trading performance, adjusted for any pending fees and direct transfers of synthetic assets into the pool.
Performance should track the pool's trading performance as a big integer, where:
Performance calculation is as follows:
pool.performance = pool.fundValue / ( pool.totalSupply + pool.availableManagerFee ) * pool.performanceFactor
pool.availableManagerFee = pool.availableManagerFee()
pool.availableManagerFee
pool.fundValue
& pool.totalSupply
pool.performanceFactor
performanceFactor
.performanceFactor
can start at value 1, and decrease towards 0 if there is any value directly transferred into the pool.pool.performanceFactor = 1;
performanceFactor
needs to be adjusted to take into account the direct deposit to reflect the true performance from the manager's trades.The formula for adjusting performanceFactor is as follows:
deposit()
method),performanceFactor = performanceFactor * fundValue / (fundValue + valueDeposited)
A valid submission would be a demo showcasing the accurate performance of Pools queried by the subgraph. The dhedge subgraph can be forked and re-deployed under participants own account on The Graph.
Winners will be announced at the conclusion of Open-Defi hackathon
[Bounty] Create Dune Analytics Dashboard with dHEDGE V2 data on Polygon
$3000 USDC
Create a dashboard with dHEDGE V2 data on Dune Analytics similar to the dashboard for mStable here https://dune.xyz/derc/mta-community. Including the following but not limited data:
V2 Public Repo: https://github.com/dhedge/V2-Public
V2 published addresses: https://github.com/dhedge/V2-Public/blob/master/publish/matic/versions.json#L338
Please include a link to the dashboard
Valid submission requires showing Dune Analytics dashboard including but not limited the above data.
Winners will be announced at the conclusion of Open Defi Hackathon
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.