dhedge / dhedge-docs

MIT License
5 stars 3 forks source link

[Bounty] Upgrade dHEDGE in Mask plugin to V2 #3

Open leckylao opened 3 years ago

leckylao commented 3 years ago

Prize Title

Upgrade dHEDGE in Mask plugin to V2

Prize Bounty

$2500 ($1250 Mask from Mask Network and $1250 DHT from dHEDGE)

Part 1: Problem Description

Background

Staging URL: https://dh-pre-prod.web.app

Example Polygon pool: https://dh-pre-prod.web.app/pool/0x09b99c546acfc7b355a9ebec58bf1e83a04b0acd

Solution

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

Part 2: Resources

Part 3: Contact and Support

Submission Requirements

Please include demo to show the integration is working.

Winner Announcement Date

Winners will be announced at the conclusion of Open Defi Hackathon

Judging Criteria

yisiliu commented 3 years ago

hey @leckylao do you mind if you can fund this bounty on gitcoin too, since this'll give @irhonin more credit to show in his gitcoin profile page.

leckylao commented 3 years ago

hey @leckylao do you mind if you can fund this bounty on gitcoin too, since this'll give @iRhonin more credit to show in his gitcoin profile page.

@iRhonin

https://gitcoin.co/issue/dhedge/dhedge-docs/3/100026233