Skip to main content

Escrow

Melcor Escrow contact.

deposit

function deposit(address _user, uint256 _amount) external onlyMelcor

Deposits tokens for contract.

Parameters:

NameTypeDescription
_useraddressDeposit User
_amountuint256Deposit Amount

delivery

function delivery(address _vendor) external onlyMelcor

Changes contract state to 'Delivery'.

Parameters:

NameTypeDescription
_vendoraddressVendor Address

confirmDelivery

function confirmDelivery(address _customer) external onlyMelcor

Confirms the delivery of the goods and sends the funds to the seller.

Parameters:

NameTypeDescription
_customeraddressCustomer Address

dispute

function dispute() external onlyMelcor

Opens a dispute.

resolveDispute

function resolveDispute(bool isCustomerWin) external onlyMelcor

Resolve the dispute.

Parameters:

NameTypeDescription
\isCustomerWinbool'true' if customer win, else 'false'