File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ contract TokenVault is Ownable {
83
83
84
84
/**
85
85
* @notice Transfers specified amount from the depositor's wallet and locks it in the gateway contract.
86
+ * @param token address of the token to lock.
87
+ * @param depositor address of wallet to transfer specified token from
88
+ * @param amount amount of tokens to transfer
86
89
*/
87
90
function lock (
88
91
address token ,
@@ -95,6 +98,9 @@ contract TokenVault is Ownable {
95
98
96
99
/**
97
100
* @notice Unlocks the specified amount from the gateway contract and transfers it to the recipient.
101
+ * @param token address of the token to unlock.
102
+ * @param recipient address of wallet to transfer specified token to
103
+ * @param amount amount of tokens to transfer
98
104
*/
99
105
function unlock (
100
106
address token ,
@@ -106,7 +112,8 @@ contract TokenVault is Ownable {
106
112
}
107
113
108
114
/**
109
- * @notice Total token balance secured by the gateway contract.
115
+ * @notice Total balance of the specified token, held by this vault.
116
+ * @param token address of the token to check.
110
117
*/
111
118
function totalLocked (address token ) external view returns (uint256 ) {
112
119
return IERC20 (token).balanceOf (address (this ));
You can’t perform that action at this time.
0 commit comments