Polygon Chain (PoS) Matic


  • This version of StableEscrow runs on Polygon Chain (PoS)
  • Completely decentralized. All information is stored only on the blockchain.
  • Allows a user (Escrow Payer) to lock DAI in an Escrow, which is payable to another user (Escrow Payee).
  • The Escrow can also have a moderator, who can settle the contract in case a dispute arises.
  • The Gas cost to create an Escrow is around 260,000 Gas @ 32 Gwei is $0.01.
  • StableEscrow charges a fee of 1 DAI to create the Escrow, which is non refundable after the escrow is created.

Press the Create Escrow Button. If the StableEscrow contract has DAI approval for the required amount a new Escrow will be created.
If DAI approval is less than the required amount, the user can use the set button to set a DAI approval for the contract.

Check Token Approvals

The Escrow Payer will need to give DAI approval to the StableEscrow contract for a certain amount.

Use the DAI Approval refresh and set buttons to manage DAI approval for the StableEscrow contract.

If the Escrow Payer plans to use StableEscrow often they can give DAI approval for an amount equivalent to a few escrows, rather than set an infinite approval like most other DAI enabled apps request. Giving infinite DAI approval to a contract address could turn out to be a security risk in the future.

  • Moderator Fee: The fee paid to the moderator if there is a dispute and they interact with the contract.
  • Lower Moderator Fee: The fee paid to the moderator if there is no dispute and they do not interact with the contract. The difference is paid back to the Escrow Payer.
Gas Tracker

Gas amounts should be less than the amounts mentioned below.
  • Only Payer:
    1. Create Escrow (260,000 Gas): Only the Payer can create the Escrow.

  • Only Payer or Moderator (If Exists):
    1. Release Funds (105,000 Gas): Release the Escrow settlement amount to Payee.

  • Only Payee or Moderator (If Exists):
    1. Set New Escrow Settlement Amount (64,000 Gas): Set a new lower amount for the Escrow that the Payee will get. The new amount must be lower or equal to the original escrow amount. The difference will be returned to the payer when the contract is finally settled.
    2. Cancel Escrow (Refund Full Amount) (92,000 Gas): This will return the entire escrow amount back to the Payer.

All parties get paid when the contract settles.

  • Payee: The original escrow amount or the new lower escrow settlement amount if it was set.
  • Moderator: Moderator Fee if they interacted with the contract, otherwise the lower moderator fee.
  • Payer: If a new lower escrow settlement amount was set, then the difference between the original and new lower amount. If moderator did not interact with the contract, then the difference between moderator fee and lower moderator fee