mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
code refactor
This commit is contained in:
parent
ce45fdaa92
commit
c3078cafd5
|
@ -1,5 +1,10 @@
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.6.0;
|
||||||
|
|
||||||
|
// import files from common directory
|
||||||
|
import { TokenInterface , MemoryInterface, EventInterface} from "../common/interfaces.sol";
|
||||||
|
import { Stores } from "../common/stores.sol";
|
||||||
|
import { DSMath } from "../common/math.sol";
|
||||||
|
|
||||||
interface ICurve {
|
interface ICurve {
|
||||||
function underlying_coins(int128 tokenId) external view returns (address token);
|
function underlying_coins(int128 tokenId) external view returns (address token);
|
||||||
function calc_token_amount(uint256[4] calldata amounts, bool deposit) external returns (uint256 amount);
|
function calc_token_amount(uint256[4] calldata amounts, bool deposit) external returns (uint256 amount);
|
||||||
|
@ -13,10 +18,6 @@ interface ICurveZap {
|
||||||
function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external returns (uint256 amount);
|
function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external returns (uint256 amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
// import files from common directory
|
|
||||||
import { TokenInterface , MemoryInterface, EventInterface} from "../common/interfaces.sol";
|
|
||||||
import { Stores } from "../common/stores.sol";
|
|
||||||
import { DSMath } from "../common/math.sol";
|
|
||||||
|
|
||||||
contract CurveHelpers is Stores, DSMath {
|
contract CurveHelpers is Stores, DSMath {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user