mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
24 lines
815 B
Solidity
24 lines
815 B
Solidity
//SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
|
|
import { TokenInterface } from "../../common/interfaces.sol";
|
|
|
|
interface OasisInterface {
|
|
function getMinSell(TokenInterface pay_gem) external view returns (uint);
|
|
function getBuyAmount(address dest, address src, uint srcAmt) external view returns(uint);
|
|
function getPayAmount(address src, address dest, uint destAmt) external view returns (uint);
|
|
function sellAllAmount(
|
|
address src,
|
|
uint srcAmt,
|
|
address dest,
|
|
uint minDest
|
|
) external returns (uint destAmt);
|
|
function buyAllAmount(
|
|
address dest,
|
|
uint destAmt,
|
|
address src,
|
|
uint maxSrc
|
|
) external returns (uint srcAmt);
|
|
|
|
function getBestOffer(TokenInterface sell_gem, TokenInterface buy_gem) external view returns(uint);
|
|
} |