Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
a184013d
Commit
a184013d
authored
Oct 09, 2017
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explicitly mark functions public
parent
7d08c4da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TokenVesting.sol
contracts/token/TokenVesting.sol
+3
-3
No files found.
contracts/token/TokenVesting.sol
View file @
a184013d
...
@@ -53,7 +53,7 @@ contract TokenVesting is Ownable {
...
@@ -53,7 +53,7 @@ contract TokenVesting is Ownable {
* @notice Transfers vested tokens to beneficiary.
* @notice Transfers vested tokens to beneficiary.
* @param token ERC20 token which is being vested
* @param token ERC20 token which is being vested
*/
*/
function release(ERC20Basic token) {
function release(ERC20Basic token)
public
{
uint256 vested = vestedAmount(token);
uint256 vested = vestedAmount(token);
require(vested > 0);
require(vested > 0);
...
@@ -70,7 +70,7 @@ contract TokenVesting is Ownable {
...
@@ -70,7 +70,7 @@ contract TokenVesting is Ownable {
* remain in the contract, the rest are returned to the owner.
* remain in the contract, the rest are returned to the owner.
* @param token ERC20 token which is being vested
* @param token ERC20 token which is being vested
*/
*/
function revoke(ERC20Basic token) onlyOwner {
function revoke(ERC20Basic token)
public
onlyOwner {
require(revocable);
require(revocable);
require(!revoked[token]);
require(!revoked[token]);
...
@@ -90,7 +90,7 @@ contract TokenVesting is Ownable {
...
@@ -90,7 +90,7 @@ contract TokenVesting is Ownable {
* @dev Calculates the amount that has already vested but hasn't been released yet.
* @dev Calculates the amount that has already vested but hasn't been released yet.
* @param token ERC20 token which is being vested
* @param token ERC20 token which is being vested
*/
*/
function vestedAmount(ERC20Basic token) constant returns (uint256) {
function vestedAmount(ERC20Basic token)
public
constant returns (uint256) {
if (now < cliff) {
if (now < cliff) {
return 0;
return 0;
} else if (now >= start + duration || revoked[token]) {
} else if (now >= start + duration || revoked[token]) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment