Overview
Overview of PHRO token
Deployed Contracts
Contract
Address and ABI's
PHRO Token
0xD49d31402723a885e5272903b7C02e8Dd571Ea36
Audits
Methods
Besides the standard ERC20 token features (transfer()
, balanceOf()
, allowance()
, etc.), the following features are also available.
permit()
function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external
Allows a use to permit another account (or contract) to use their funds using a signed message. This enables gas-less transactions and single approval/transfer transactions.
Parameter
Type
Description
owner
address
The owner of the funds
spender
address
The spender of the funds
value
uint256
The amount the spender
is permitted to use
deadline
uint256
The deadline timestamp that the permit is valid. Use type(uint).max
for no deadline.
v
uint8
Signature parameter
r
bytes32
Signature parameter
s
bytes32
Signature parameter
_nonces()
function _nonces(address owner) public
Returns the next valid nonce to submit when calling permit()
lock()
function lock(bytes32 _reason, uint256 _amount, uint256 _time) public
Locks a specified amount of tokens against an address, for a specified time and reason.
transferWithLock()
function transferWithLock(address _to, bytes32 _reason, uint256 _amount, uint256 _time)
Transfers and locks a specified amount of tokens for an address, for a specified time and reason.
tokensLocked()
function tokensLocked(address _of, bytes32 _reason) public
Returns the tokens locked for a specified address for a specified reason.
tokensLockedAtTime()
function tokensLockedAtTime(address _of, bytes32 _reason, uint256 _time) public
Returns tokens locked for a specified address, for a specified reason at a specific time.
totalBalanceOf()
function totalBalanceOf(address _of, bytes32 _reason) public
Returns the total tokens held by an address (locked and unlocked).
extendLock()
function extendLock(bytes32 _reason, uint256 _time) public
Extends the lock for a specified reason and time.
increaseLockAmount()
function increaseLockAmount(bytes32 _reason, uint256 _amount) public
Increase the number of tokens locked for an address, for a specified reason.
tokensUnlockable()
function tokensUnlockable(address _of, bytes32 _reason) public
Returns unlockable tokens for a specified address, for a specified reason.
unlock()
function unlock(address _of) public onlyOwner
Unlocks the unlockable tokens of a specified address.
getUnlockableTokens()
function getUnlockableTokens(address _of) public
Gets the unlockable tokens of a specified address.
Last updated
Was this helpful?