Introduction

This tutorial explains how to use the escrow system through the user interface. Each step corresponds to a core function of the smart contract and is executed via the UI.

1. Introduction

The escrow system enables secure peer-to-peer transactions using ERC20 tokens. A buyer initiates a deal with a seller by locking funds in the smart contract. The transaction is only completed once both parties accept the deal. In case of disagreement, a dispute can be raised and resolved by the administrator.

Key features:

  • Funds are held in escrow until mutual agreement.

  • A 3% fee is collected on every deal.

  • Disputes can be resolved manually by an administrator.

  • Funds can be withdrawn at any time after a deal is resolved.


Additional Information

  • Deals that are not accepted within 30 days can be expired via expireDeal().

  • Users and admins can view balances using:

    • getUserBalance(address user, address tokenAddress)

    • getAdminBalance(address tokenAddress)

    • getContractBalance(address tokenAddress)

Last updated