mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
Merge branch 'master' into curve-gauge-connector-feature
This commit is contained in:
commit
dbc3698a86
|
@ -74,7 +74,7 @@ contract OneHelpers is Stores, DSMath {
|
||||||
/**
|
/**
|
||||||
* @dev Return 1proto Address
|
* @dev Return 1proto Address
|
||||||
*/
|
*/
|
||||||
function getOneProtoAddress() internal view returns (address payable) {
|
function getOneProtoAddress() internal virtual view returns (address payable) {
|
||||||
return payable(OneProtoMappingInterface(getOneProtoMappingAddress()).oneProtoAddress());
|
return payable(OneProtoMappingInterface(getOneProtoMappingAddress()).oneProtoAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ contract Helpers is BytesHelper {
|
||||||
) public isChief {
|
) public isChief {
|
||||||
require(stakingAddress != address(0), "stakingAddress-not-vaild");
|
require(stakingAddress != address(0), "stakingAddress-not-vaild");
|
||||||
require(stakingToken != address(0), "stakingToken-not-vaild");
|
require(stakingToken != address(0), "stakingToken-not-vaild");
|
||||||
|
require(rewardToken != address(0), "rewardToken-not-vaild");
|
||||||
require(bytes(stakingName).length <= 32, "Length-exceeds");
|
require(bytes(stakingName).length <= 32, "Length-exceeds");
|
||||||
bytes32 stakeType = stringToBytes32(stakingName);
|
bytes32 stakeType = stringToBytes32(stakingName);
|
||||||
require(stakingMapping[stakeType].stakingPool == address(0), "StakingPool-already-added");
|
require(stakingMapping[stakeType].stakingPool == address(0), "StakingPool-already-added");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.6.0;
|
||||||
pragma experimental ABIEncoderV2;
|
pragma experimental ABIEncoderV2;
|
||||||
|
|
||||||
import { ConnectOne } from "../connectors/1proto.sol";
|
import { ConnectOne } from "../connectors/1inch.sol";
|
||||||
|
|
||||||
contract MockConnectOne is ConnectOne {
|
contract MockConnectOne is ConnectOne {
|
||||||
address public oneProtoAddr;
|
address public oneProtoAddr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user