Deployment
The Solidity source uses:
solidity
pragma solidity ^0.8.0;A deployment therefore requires a compatible Solidity 0.8.x compiler.
The repository does not currently pin one exact compiler version in the Solidity source. For reproducible production deployments, pinning an exact compiler version is preferable.
Constructor
solidity
constructor(uint256 _feeBps, address _platformWallet)| Parameter | Type | Description |
|---|---|---|
_feeBps | uint256 | Platform fee in basis points. Maximum: 1000. |
_platformWallet | address | Address that accrues platform fees. Cannot be zero. |
For a 2.5% platform fee:
text
_feeBps = 250Constructor failures
FeeTooHigh()when_feeBps > 1000;ZeroAddress()when_platformWallet == address(0).
Remix deployment
- Open or import
contracts/Escrow.solin Remix. - Compile with a compatible Solidity
0.8.xcompiler. - Open Deploy & Run Transactions.
- Select
EscrowContract. - Enter
_feeBpsand_platformWallet. - Choose the target environment.
- Deploy.
- Record the contract address and network.
Before mainnet
A successful compilation is not equivalent to security assurance. Before production use, it is imperative to add automated tests, review ERC-20 edge cases, harden token transfers, address lifecycle deadlocks, and obtain an independent security review.