@@ -7,7 +7,7 @@ pragma solidity ^0.8.20;
77import { SafeERC20, IERC20 } from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol " ;
88import { Ownable } from "openzeppelin-contracts/access/Ownable.sol " ;
99
10- contract EnsoVesting {
10+ contract EnsoVestingWallet is Ownable {
1111 using SafeERC20 for IERC20 ;
1212
1313 event TokenReleased (uint256 amount );
@@ -28,17 +28,17 @@ contract EnsoVesting {
2828 error NotRevocable ();
2929 error NotRevoker (address sender , address revoker );
3030
31- constructor (address token , address revoker , address beneficiary , uint64 startTimestamp , uint64 durationSeconds , uint64 cliffSeconds ) Ownable (beneficiary) {
31+ constructor (IERC20 token , address revoker , address beneficiary , uint64 startTimestamp , uint64 durationSeconds , uint64 cliffSeconds ) Ownable (beneficiary) {
3232 if (cliffSeconds > durationSeconds) {
3333 revert InvalidCliffDuration (cliffSeconds, durationSeconds);
3434 }
3535 _start = startTimestamp;
3636 _duration = durationSeconds;
3737 _cliff = startTimestamp + cliffSeconds;
38- _token = IERC20 ( token) ;
38+ _token = token;
3939 if (revoker != address (0 )) {
4040 _revoker = revoker;
41- _revocable = true ;
41+ revocable = true ;
4242 }
4343 }
4444
@@ -66,21 +66,21 @@ contract EnsoVesting {
6666 /**
6767 * @dev Getter for the cliff timestamp.
6868 */
69- function cliff () external view virtual returns (uint256 ) {
69+ function cliff () public view virtual returns (uint256 ) {
7070 return _cliff;
7171 }
7272
7373 /**
7474 * @dev Getter for the token address.
7575 */
76- function token () external view returns (address ) {
76+ function token () public view returns (address ) {
7777 return address (_token);
7878 }
7979
8080 /**
8181 * @dev Getter for the revoker address.
8282 */
83- function revoker () external view returns (address ) {
83+ function revoker () public view returns (address ) {
8484 return _revoker;
8585 }
8686
@@ -125,7 +125,7 @@ contract EnsoVesting {
125125 revoked = true ;
126126 uint256 amount = _token.balanceOf (address (this ));
127127 _token.safeTransfer (receiver, amount);
128- emit Revoked (amount);
128+ emit VestingRevoked (amount, receiver );
129129 }
130130
131131 /**
0 commit comments