2021-06-07 18:02:13 +00:00
|
|
|
pragma solidity ^0.7.0;
|
|
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
|
|
|
|
import { DSMath } from "../../common/math.sol";
|
|
|
|
import { Basic } from "../../common/basic.sol";
|
|
|
|
|
2021-06-10 18:12:39 +00:00
|
|
|
import { IGUniRouter, IGUniPool, IERC20 } from "./interface.sol";
|
|
|
|
|
2021-06-09 21:30:34 +00:00
|
|
|
|
2021-06-07 18:02:13 +00:00
|
|
|
abstract contract Helpers is DSMath, Basic {
|
2021-06-09 21:30:34 +00:00
|
|
|
|
|
|
|
IGUniRouter public constant gUniRouter = IGUniRouter(0x8CA6fa325bc32f86a12cC4964Edf1f71655007A7);
|
2021-06-10 18:12:39 +00:00
|
|
|
|
|
|
|
struct DepositAndSwap {
|
|
|
|
IGUniPool poolContract;
|
|
|
|
IERC20 _token0;
|
|
|
|
IERC20 _token1;
|
|
|
|
uint amount0;
|
|
|
|
uint amount1;
|
|
|
|
uint mintAmount;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Deposit {
|
|
|
|
IGUniPool poolContract;
|
|
|
|
IERC20 _token0;
|
|
|
|
IERC20 _token1;
|
|
|
|
uint amount0In;
|
|
|
|
uint amount1In;
|
|
|
|
uint mintAmount;
|
|
|
|
}
|
2021-06-07 18:02:13 +00:00
|
|
|
|
|
|
|
}
|