10000 GitHub - hyperlendx/looping-contracts: HyperLend looping contracts
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hyperlendx/looping-contracts

Repository files navigation

HyperLend Looping Contracts


To open position:

  • use flashloan to get debtAsset
  • swap debtAsset to yieldAsset
  • supply yieldAsset
  • borrow debtAsset to repay flashloan

To close position:

  • use flashloan to get debtAsset
  • repay debt
  • withdraw yieldAsset
  • swap yieldAsset to debtAsset
  • repay flashloan

Users must approve:

  • Looping contract to spend the initial amount of debtAsset
  • Looping contract to spend VariableDebtToken of debtAsset (using approveDelegation, so contract can borrow on behalf of the user).

PositionsManager

Positions Manager keeps track of different leveraged positions.

About

HyperLend looping contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0