add swap calc helper

This commit is contained in:
owen05
2020-12-10 00:51:28 +08:00
parent d55238d493
commit c237438dec
9 changed files with 108 additions and 27 deletions

View File

@@ -77,4 +77,6 @@ interface IDODOV1 {
function getExpectedTarget() external view returns (uint256 baseTarget, uint256 quoteTarget);
function getOraclePrice() external view returns (uint256);
function getMidPrice() external view returns (uint256 midPrice);
}