g8keepPenaltyReceiver
g8keepPenaltyReceiver
Inherits: Ownable
Receives tokens from g8keep snipe protection penalties for [redacted].
State Variables
allowedTransferers
Mapping of addresses that are allowed to transfer tokens from the penalty receiver.
ALLOWED_TIME_DELAY
Guardrail to prevent a newly added transferer from transfering tokens immediately.
Functions
onlyAllowedTransferer
constructor
Constructs the g8keepPenaltyReceiver contract.
Parameters
_defaultOwner
address
The address of the default owner of the contract.
setAllowedTransferer
Admin function to configure a paired token.
Parameters
transferer
address
Address of the address to set allowed.
allowed
bool
True if the address is allowed to transfer tokens, false if not.
transferToken
Transfers an amount
of tokenAddress
from the contract to to
.
Throws when called by an address that is not an allowed transferer.
Parameters
tokenAddress
address
Address of the token to transfer.
to
address
Address to transfer the token to.
amount
uint256
Amount of the token to transfer.
Events
AllowedTransfererUpdated
Emitted when the penalty receiver owner updates an allowed transferer.
Errors
NoUpdate
Thrown when allowing or removing a transferer and no change would be made.
NotAllowed
Thrown when a transfer request is made by an address that is not allowed.
WithdrawalFailed
Thrown when withdrawing a token from the contract and the withdrawal fails.
ZeroAddress
Thrown when attempting to set the zero address as an allowed transferer.
Last updated