@@ -29,7 +29,7 @@ contract ConnextVestingWallet is Ownable2Step, IConnextVestingWallet {
29
29
uint64 public constant NEXT_TOKEN_LAUNCH = SEPT_05_2023; // Equals to Sept 5th 2023
30
30
31
31
/// @inheritdoc IConnextVestingWallet
32
- address public constant NEXT_TOKEN = 0xFE67A4450907459c3e1FFf623aA927dD4e28c67a ; // Mainnet NEXT token address
32
+ IERC20 public constant NEXT_TOKEN = IERC20 ( 0xFE67A4450907459c3e1FFf623aA927dD4e28c67a ) ; // Mainnet NEXT token address
33
33
34
34
/// @inheritdoc IConnextVestingWallet
35
35
uint64 public constant UNLOCK_DURATION = ONE_YEAR + ONE_MONTH; // 13 months duration
@@ -85,14 +85,14 @@ contract ConnextVestingWallet is Ownable2Step, IConnextVestingWallet {
85
85
function release () public {
86
86
uint256 _amount = releasable ();
87
87
released += _amount;
88
- IERC20 ( NEXT_TOKEN) .transfer (owner (), _amount);
89
- emit ERC20Released (NEXT_TOKEN, _amount);
88
+ NEXT_TOKEN.transfer (owner (), _amount);
89
+ emit ERC20Released (address ( NEXT_TOKEN) , _amount);
90
90
}
91
91
92
92
/// @inheritdoc IConnextVestingWallet
93
93
function releasable () public view returns (uint256 _amount ) {
94
94
_amount = vestedAmount (uint64 (block .timestamp )) - released;
95
- uint256 _balance = IERC20 ( NEXT_TOKEN) .balanceOf (address (this ));
95
+ uint256 _balance = NEXT_TOKEN.balanceOf (address (this ));
96
96
_amount = _balance < _amount ? _balance : _amount;
97
97
}
98
98
@@ -103,7 +103,7 @@ contract ConnextVestingWallet is Ownable2Step, IConnextVestingWallet {
103
103
function sendDust (IERC20 _token , uint256 _amount , address _to ) external onlyOwner {
104
104
if (_to == address (0 )) revert ZeroAddress ();
105
105
106
- if (_token == IERC20 ( NEXT_TOKEN) && released != TOTAL_AMOUNT) {
106
+ if (_token == NEXT_TOKEN && released != TOTAL_AMOUNT) {
107
107
revert NotAllowed ();
108
108
}
109
109
@@ -118,7 +118,7 @@ contract ConnextVestingWallet is Ownable2Step, IConnextVestingWallet {
118
118
* @inheritdoc IConnextVestingWallet
119
119
* @dev This func is needed because only the recipients can claim
120
120
*/
121
- function claim (address _llamaVestAddress ) external {
122
- IVestingEscrowSimple (_llamaVestAddress) .claim (address (this ));
121
+ function claim (IVestingEscrowSimple _llamaVest ) external {
122
+ _llamaVest .claim (address (this ));
123
123
}
124
124
}
0 commit comments