UnionToken
Mint and distribute UnionTokens.
UNION is an erc20 governance token thats earned by using the Union protocol and is used for controlling the Timelockthat governs the protocol.
UNION is distributed via an algorithmic mechanism in Comptroller to the vouchers who stake and vouch for borrowers who don’t default.
Functions
totalSupply() → uint256
totalSupply() → uint256
Get total supply
Return Values:
Total supply
balanceOf(address account) → uint256
balanceOf(address account) → uint256
No description
transfer(address recipient, uint256 amount) → bool
transfer(address recipient, uint256 amount) → bool
No description
mint(address account, uint256 amount) → bool
mint(address account, uint256 amount) → bool
No description
getPriorVotes(address account, uint256 blockNumber) → uint256
getPriorVotes(address account, uint256 blockNumber) → uint256
Determine the prior number of votes for an account as of a block number. Block number must be a finalized block or else this function will revert to prevent misinformation.
Parameters:
account
: The address of the account to checkblockNumber
: The block number to get the vote balance at
Return Values:
The number of votes the account had as of the given block
permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
Allows to spend owner's Union tokens by the specified spender. The function can be called by anyone, but requires having allowance parameters signed by the owner according to EIP712.
Parameters:
owner
: The owner's address, cannot be zero address.spender
: The spender's address, cannot be zero address.value
: The allowance amount, in wei.deadline
: The allowance expiration date (unix timestamp in UTC).v
: A final byte of signature (ECDSA component).r
: The first 32 bytes of signature (ECDSA component).s
: The second 32 bytes of signature (ECDSA component).
burnFrom(address account, uint256 amount)
burnFrom(address account, uint256 amount)
No description
Events
DelegateChanged(address delegator, address fromDelegate, address toDelegate)
DelegateChanged(address delegator, address fromDelegate, address toDelegate)
No description
DelegateVotesChanged(address delegate, uint256 previousBalance, uint256 newBalance)
DelegateVotesChanged(address delegate, uint256 previousBalance, uint256 newBalance)
No description
MinterChange(address oldMinter, address newMinter)
MinterChange(address oldMinter, address newMinter)
Minter address change
NewPendingMinter(address oldPendingMinter, address newPendingMinter)
NewPendingMinter(address oldPendingMinter, address newPendingMinter)
Pending minter address change
Last updated