Deployer
This following contract is the OpenPeerEscrowsDeployer and is responsible for deploying individual escrow contracts. This contract deploys escrow contracts for native tokens and ERC20 tokens.
Binance Smart Chain
Global settings
arbitrator: Address of the arbitrator (currently OP staff, DAO later)feeRecipient: Address to receive the fees_fee: OP fee (bps) ex: 30 == 0.3%stopped: Circuit breaker flagimplementation: Address of the OpenPeerEscrow implementation contractfeeDiscountNFT: NFT contract for fee discounts
Events
ContractCreated(address _seller, address _deployment): Emits when an escrow contract is deployed
Modifiers
stopInEmergency: Circuit breaker modifier
Functions
constructor(): Initializes the contract with the given parametersdeploy(): Deploys a new escrow contract for the msg sendersetArbitrator(address _arbitrator): Updates the arbitratorsetFeeRecipient(address payable _feeRecipient): Updates the fee recipientsetFee(uint256 fee_): Updates the feesetTrustedForwarder(address trustedForwarder): Updates the trusted forwarderupdatePartnerFeeBps(address[] calldata _partners, uint256[] calldata _fees): Updates the fees of the partners (bps). Cant be more than 1%. Users can pass the 0x address to avoid it.openpeerFee(): Returns the fee OP will receive from the orders.sellerFee(address _partner): Returns the total fee a seller will pay (bps)
Last updated