Skip to content

Kevandrew/escrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Escrow (Polygon)

Escrow is a prediction market protocol deployed on Polygon-compatible EVM chains.

Recommended stack

  • Foundry (Solidity + forge test)
  • OpenZeppelin Contracts (SafeERC20/ReentrancyGuard)
  • OpenZeppelin proxy contracts (proxy/impl pattern via TransparentUpgradeableProxy)

Quick start

  1. Install Foundry: https://book.getfoundry.sh/getting-started/installation
  2. From repo root:
    • cd polygon
    • git submodule update --init --recursive
    • forge build
    • forge test

Invariant tests

  • forge test --match-path "test/invariants/*"

API notes

  • trade(marketId, directionYes, amountIn, minSharesOut) includes slippage protection.
  • resolve(marketId, updateData) uses an oracle adapter (config.oracle) and is payable to forward update fees (for Chainlink adapter this is 0).

Deployment

  • See docs/AMOY_DEPLOYMENT.md for testnet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published