2021-02-07 16:40:28 +00:00
|
|
|
pragma solidity ^0.7.0;
|
2020-11-20 14:49:48 +00:00
|
|
|
|
|
|
|
import { TokenInterface } from "../../common/interfaces.sol";
|
|
|
|
import { DSMath } from "../../common/math.sol";
|
|
|
|
import { Basic } from "../../common/basic.sol";
|
|
|
|
|
|
|
|
|
2021-02-05 18:33:49 +00:00
|
|
|
abstract contract Helpers is DSMath, Basic {
|
2020-11-20 14:49:48 +00:00
|
|
|
/**
|
2021-03-21 09:13:05 +00:00
|
|
|
* @dev 1Inch Address
|
2020-11-20 14:49:48 +00:00
|
|
|
*/
|
2021-05-26 01:33:45 +00:00
|
|
|
address internal constant oneInchAddr = 0x11111112542D85B3EF69AE05771c2dCCff4fAa26;
|
2020-11-20 14:49:48 +00:00
|
|
|
|
|
|
|
/**
|
2021-03-21 09:13:05 +00:00
|
|
|
* @dev 1inch swap function sig
|
2020-11-20 14:49:48 +00:00
|
|
|
*/
|
2021-05-26 01:33:45 +00:00
|
|
|
bytes4 internal constant oneInchSwapSig = 0x7c025200;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @dev 1inch swap function sig
|
|
|
|
*/
|
|
|
|
bytes4 internal constant oneInchUnoswapSig = 0x2e95b6c8;
|
2020-11-20 14:49:48 +00:00
|
|
|
}
|