Git Source

Functions

determineTransferAction

p2p transfer is position 0 and will be default unless other conditions are met.

determines if a transfer is: p2p transfer buy sell mint burn

function determineTransferAction(address _from, address _to, address _sender) internal returns (ActionTypes action);

Parameters

NameTypeDescription
_fromaddressthe address where the tokens are being moved from
_toaddressthe address where the tokens are going to
_senderaddressthe address triggering the transaction

Returns

NameTypeDescription
actionActionTypesintended in the transfer

isContract

Check if the addresss is a contract

function isContract(address account) internal view returns (bool);

Parameters

NameTypeDescription
accountaddressaddress to check

Returns

NameTypeDescription
<none>boolcontract yes/no

Events

Action

event Action(uint8 _type);