Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeHive Cluster integration into Zerion #163

Open
wants to merge 10 commits into
base: interactive-updates
Choose a base branch
from

Conversation

Pavel-Blaize
Copy link

@Pavel-Blaize Pavel-Blaize commented Oct 11, 2021

ClusterTokenAdapter.sol

  • returns components of the Cluster and their shares within the Cluster

DeHiveProtocolAdapter.sol

  • returns DHV balance

StakingDHVAdapter.sol

  • returns staked DHV balance.
  • works for Ethereum, Polygon and BSC

ClusterTokenInteractiveAdapterPoly.sol

  • integrate Cluster assemble (join) operation via deposit() function for Polygon clusters.
  • integrate Cluster disassemble (leave) operation via withdraw() function for Polygon clusters.
  • adapter perfoms all necessary operations (swapping underlyings, redemption of commission during Cluster disassemble, refund of extra Matic, etc)
  • adapter works for Polygon (Matic) network.

StakingDHVInteractiveAdapterPoly.sol

  • Stake DHV token on Polygon DeHive staking pool
  • adapter works for Polygon (Matic) network.

ClusterTokenInteractiveAdapterETH.sol

  • integrate Cluster assemble (join) operation via deposit() function for ETH clusters.
  • integrate Cluster disassemble (leave) operation via withdraw() function for ETH clusters.
  • adapter perfoms all necessary operations (swapping underlyings, redemption of commission during Cluster disassemble, refund of extra Eth, etc)
  • adapter works for Ethereum network.

StakingDHVInteractiveAdapterEth.sol

  • Stake DHV token on Ethereum DeHive staking pool
  • adapter works for Ethereum network.

StakingPoolsInteractiveAdapterEth.sol

  • Stake Uniswap DHV/ETH lp on Ethereum DeHive staking pool
  • adapter works for Ethereum network.

ClusterTokenInteractiveAdapterBSC.sol

  • integrate Cluster assemble (join) operation via deposit() function for BSC clusters.
  • integrate Cluster disassemble (leave) operation via withdraw() function for BSC clusters.
  • adapter perfoms all necessary operations (swapping underlyings, redemption of commission during Cluster disassemble, refund of extra BNB, etc)
  • adapter works for BSC network.

StakingDHVInteractiveAdapterBSC.sol

  • Stake DHV token on BSC DeHive staking pool
  • adapter works for BSC network.

StakingPoolsInteractiveAdapterBSC.sol

  • Stake PancakeSwap DHV/BUSD lp on BSC DeHive staking pool
  • adapter works for BSC network.

Assets:
DHV (Ethereum) 0x62Dc4817588d53a056cBbD18231d91ffCcd34b2A
DHV (Polygon) 0x5fCB9de282Af6122ce3518CDe28B7089c9F97b26
DHV(BSC) 0x58759dd469ae5631c42cf8a473992335575b58d7
ETH-Core Cluster (Ethereum) 0x6Bc3F65Fc50E49060e21eD6996be96ee4B404752
Poly Cluster (Polygon) 0x4964B3B599B82C3FdDC56e3A9Ffd77d48c6AF0f0
PolyGaming Cluster (Polygon) 0x589Ea336092184d9eD74b8263c4eecA73Ed0cE7a
BSC-deCluster (BSC) 0x0a684421ef48b431803BFd75F38675EAb1e38Ed5

Address of DHV/BUSD LP: 0x72ba008B631D9FD5a8E8013023CB3c05E19A7CA9
Pool Id for DHV/BUSD LP: 0

Address of DHV/ETH LP: 0x60c5BF43140d6341bebFE13293567FafBe01D65b
Pool Id for DHV/ETH LP: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants