mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
23 lines
812 B
Solidity
23 lines
812 B
Solidity
//SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
|
|
import { DSMath } from "../../common/math.sol";
|
|
import { Basic } from "../../common/basic.sol";
|
|
import { TokenInterface } from "../../common/interfaces.sol";
|
|
import "./interface.sol";
|
|
|
|
abstract contract Helpers is DSMath, Basic {
|
|
|
|
address internal constant CRV_USD = 0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E;
|
|
/**
|
|
* @dev ControllerFactory Interface
|
|
*/
|
|
IControllerFactory internal constant ctrFactory = IControllerFactory(0xC9332fdCB1C491Dcc683bAe86Fe3cb70360738BC);
|
|
|
|
/**
|
|
* @dev Get controller address by given collateral asset
|
|
*/
|
|
function getController(address collateral, uint256 i) internal view returns(IController controller) {
|
|
controller = IController(ctrFactory.get_controller(collateral, i));
|
|
}
|
|
} |