Skip to main content

Rewards Cheque Processor

ThingsIX rewards cheque processor plugin.

Functions

claim

function claim(address beneficiary, uint256 totalAmount, bytes signature) external

Claim a rewards cheque. The rewards are paid in THIX tokens to beneficiary.

Parameters

NameTypeDescription
beneficiaryaddressrewards receiver
totalAmountuint256amount of Thix tokens to reward to beneficiary
signaturebytescheque signature

claimAndCall

function claimAndCall(address beneficiary, uint256 totalAmount, bytes signature) external

Claim a rewards cheque. The rewards are paid in THIX tokens to beneficiary. After the rewards are paid the IERC1363Receiver::onTransferReceived function is called on beneficiary with the sender address set to the zero address and data empty.

Parameters

NameTypeDescription
beneficiaryaddressrewards receiver
totalAmountuint256amount of Thix tokens to reward to beneficiary
signaturebytescheque signature

claimAndCall

function claimAndCall(address beneficiary, uint256 totalAmount, bytes signature, bytes data) external

Claim a rewards cheque. The rewards are paid in THIX tokens to beneficiary. After the rewards are paid the IERC1363Receiver::onTransferReceived function is called on beneficiary with the sender address set to the zero address and the given data as argument.

Parameters

NameTypeDescription
beneficiaryaddressrewards receiver
totalAmountuint256amount of Thix tokens to reward to beneficiary
signaturebytescheque signature
databytespassed to the IERC1363Receiver::onTransferReceived