Simple payments

Under Review

FINANCIALTOOLS

Contract purpose

The smart contract is responsible with different executing a simple payment

Parameters:

sender The account sending payments. recipient The account receiving the payments. expiration Timeout in case the recipient never closes.

Exposed methods

close the recipient can close the channel at any time by presenting a signed amount from the sender. the recipient will be sent that amount, and the remainder will go back to the sender

Parameters:

  1. uint amount
  2. bytes signature

extend the sender can extend the expiration at any time

Parameters:

  1. uint256 newExpiration

claimTimeout if the timeout is reached without the recipient closing the channel, then the Ether is released back to the sender.

splitSignature

Parameters:

  1. bytes sig

recoverSigner

Parameters:

  1. bytes32 message
  2. bytes sig

prefixed

Parameters: bytes32 hash

Reviewed by Modex
Buy

Copyright © Modex Marketplace