Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.18 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.18 KB

Open Dollar

Twitter: open_dollar

Proxy action contracts for Open Dollar

codecov

Documentation

ParaswapSellAdapter Docs

get max loan and leveraged amount of debt:

IParaswapSellAdapter.getLeveragedDebt(bytes32 _cType, uint256 _initCapital)

get loan and leveraged amount of debt with percentage buffer:

IParaswapSellAdapter.getLeveragedDebt(bytes32 _cType, uint256 _initCapital, uint256 _percentageBuffer)

execute leverage flashloan

IParaswapSellAdapter.requestFlashloan(SellParams memory _sellParams, uint256 _initCollateral, uint256 _collateralLoan, uint256 _minDstAmount, uint256 _safeId, bytes32 _cType)