Escrow
Melcor Escrow contact.
deposit
function deposit(address _user, uint256 _amount) external onlyMelcor
Deposits tokens for contract.
Parameters:
Name | Type | Description |
---|---|---|
_user | address | Deposit User |
_amount | uint256 | Deposit Amount |
delivery
function delivery(address _vendor) external onlyMelcor
Changes contract state to 'Delivery'.
Parameters:
Name | Type | Description |
---|---|---|
_vendor | address | Vendor Address |
confirmDelivery
function confirmDelivery(address _customer) external onlyMelcor
Confirms the delivery of the goods and sends the funds to the seller.
Parameters:
Name | Type | Description |
---|---|---|
_customer | address | Customer Address |
dispute
function dispute() external onlyMelcor
Opens a dispute.
resolveDispute
function resolveDispute(bool isCustomerWin) external onlyMelcor
Resolve the dispute.
Parameters:
Name | Type | Description |
---|---|---|
\isCustomerWin | bool | 'true' if customer win, else 'false' |