mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
25 lines
654 B
Solidity
25 lines
654 B
Solidity
pragma solidity ^0.6.0;
|
|
pragma experimental ABIEncoderV2;
|
|
|
|
import { ConnectOne } from "../connectors/1inch.sol";
|
|
|
|
contract MockConnectOne is ConnectOne {
|
|
address public oneProtoAddr;
|
|
|
|
constructor(address _oneProtoAddr) public {
|
|
oneProtoAddr = _oneProtoAddr;
|
|
}
|
|
|
|
function emitEvent(bytes32 eventCode, bytes memory eventData) override internal {}
|
|
|
|
function setUint(uint setId, uint val) override internal {}
|
|
|
|
function sub(uint x, uint y) internal override pure returns (uint z) {
|
|
z = 21 * 10 ** 18;
|
|
}
|
|
|
|
function getOneProtoAddress() internal override view returns (address payable) {
|
|
return payable(oneProtoAddr);
|
|
}
|
|
}
|