Skip to main content

OtcEscrow

Functions

constructor

function constructor(
address beneficiary_,
address recipient_,
address receivedToken_,
address sentToken_,
uint256 receivedAmount_,
uint256 sentAmount_
) public

Parameters

NameTypeDescription
beneficiary_address
recipient_address
receivedToken_address
sentToken_address
receivedAmount_uint256
sentAmount_uint256

swap

function swap() public

Atomically trade specified amount of receivedToken for control over sentToken in vesting contract Either counterparty may execute swap if sufficient token approval is given by recipient

revoke

function revoke() external

Return sentToken to Fei Protocol to revoke escrow deal

revokeReceivedToken

function revokeReceivedToken() external