mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
changed params on incentive function + updated address
This commit is contained in:
parent
a7cd775056
commit
20b02db9bf
|
@ -17,7 +17,7 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
INonfungiblePositionManager constant nftManager =
|
INonfungiblePositionManager constant nftManager =
|
||||||
INonfungiblePositionManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);
|
INonfungiblePositionManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);
|
||||||
IUniswapV3Staker constant staker =
|
IUniswapV3Staker constant staker =
|
||||||
IUniswapV3Staker(0x1f98407aaB862CdDeF78Ed252D6f557aA5b0f00d);
|
IUniswapV3Staker(0xe34139463bA50bD61336E0c446Bd8C0867c6fE65);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Get Last NFT Index
|
* @dev Get Last NFT Index
|
||||||
|
|
|
@ -213,14 +213,16 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
* @dev Create incentive
|
* @dev Create incentive
|
||||||
* @notice Create incentive
|
* @notice Create incentive
|
||||||
* @param _rewardToken _rewardToken address
|
* @param _rewardToken _rewardToken address
|
||||||
* @param _length incentive length
|
* @param _startTime stake start time
|
||||||
|
* @param _endTime stake end time
|
||||||
* @param _refundee refundee address
|
* @param _refundee refundee address
|
||||||
* @param _poolAddr Uniswap V3 Pool address
|
* @param _poolAddr Uniswap V3 Pool address
|
||||||
* @param _reward reward amount
|
* @param _reward reward amount
|
||||||
*/
|
*/
|
||||||
function createIncentive(
|
function createIncentive(
|
||||||
address _rewardToken,
|
address _rewardToken,
|
||||||
uint256 _length,
|
uint256 _startTime,
|
||||||
|
uint256 _endTime,
|
||||||
address _refundee,
|
address _refundee,
|
||||||
address _poolAddr,
|
address _poolAddr,
|
||||||
uint256 _reward
|
uint256 _reward
|
||||||
|
@ -230,8 +232,6 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
IUniswapV3Pool pool = IUniswapV3Pool(_poolAddr);
|
IUniswapV3Pool pool = IUniswapV3Pool(_poolAddr);
|
||||||
uint256 _startTime = block.timestamp;
|
|
||||||
uint256 _endTime = _startTime + _length;
|
|
||||||
IUniswapV3Staker.IncentiveKey memory _key = IUniswapV3Staker
|
IUniswapV3Staker.IncentiveKey memory _key = IUniswapV3Staker
|
||||||
.IncentiveKey(
|
.IncentiveKey(
|
||||||
IERC20Minimal(_rewardToken),
|
IERC20Minimal(_rewardToken),
|
||||||
|
|
|
@ -17,7 +17,7 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
INonfungiblePositionManager constant nftManager =
|
INonfungiblePositionManager constant nftManager =
|
||||||
INonfungiblePositionManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);
|
INonfungiblePositionManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);
|
||||||
IUniswapV3Staker constant staker =
|
IUniswapV3Staker constant staker =
|
||||||
IUniswapV3Staker(0x1f98407aaB862CdDeF78Ed252D6f557aA5b0f00d);
|
IUniswapV3Staker(0xe34139463bA50bD61336E0c446Bd8C0867c6fE65);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Get Last NFT Index
|
* @dev Get Last NFT Index
|
||||||
|
|
|
@ -213,14 +213,16 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
* @dev Create incentive
|
* @dev Create incentive
|
||||||
* @notice Create incentive
|
* @notice Create incentive
|
||||||
* @param _rewardToken _rewardToken address
|
* @param _rewardToken _rewardToken address
|
||||||
* @param _length incentive length
|
* @param _startTime stake start time
|
||||||
|
* @param _endTime stake end time
|
||||||
* @param _refundee refundee address
|
* @param _refundee refundee address
|
||||||
* @param _poolAddr Uniswap V3 Pool address
|
* @param _poolAddr Uniswap V3 Pool address
|
||||||
* @param _reward reward amount
|
* @param _reward reward amount
|
||||||
*/
|
*/
|
||||||
function createIncentive(
|
function createIncentive(
|
||||||
address _rewardToken,
|
address _rewardToken,
|
||||||
uint256 _length,
|
uint256 _startTime,
|
||||||
|
uint256 _endTime,
|
||||||
address _refundee,
|
address _refundee,
|
||||||
address _poolAddr,
|
address _poolAddr,
|
||||||
uint256 _reward
|
uint256 _reward
|
||||||
|
@ -230,8 +232,6 @@ abstract contract UniswapResolver is Helpers, Events {
|
||||||
returns (string memory _eventName, bytes memory _eventParam)
|
returns (string memory _eventName, bytes memory _eventParam)
|
||||||
{
|
{
|
||||||
IUniswapV3Pool pool = IUniswapV3Pool(_poolAddr);
|
IUniswapV3Pool pool = IUniswapV3Pool(_poolAddr);
|
||||||
uint256 _startTime = block.timestamp;
|
|
||||||
uint256 _endTime = _startTime + _length;
|
|
||||||
IUniswapV3Staker.IncentiveKey memory _key = IUniswapV3Staker
|
IUniswapV3Staker.IncentiveKey memory _key = IUniswapV3Staker
|
||||||
.IncentiveKey(
|
.IncentiveKey(
|
||||||
IERC20Minimal(_rewardToken),
|
IERC20Minimal(_rewardToken),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user