Allowances
To place an order, allowances must be set by the funder address for the specifiedmaker
asset for the Exchange contract. When buying, this means the funder must have set a USDC allowance greater than or equal to the spending amount. When selling, the funder must have set an allowance for the conditional token that is greater than or equal to the selling amount. This allows the Exchange contract to execute settlement according to the signed order instructions created by a user and matched by the operator.
Signature Types
Polymarket’s CLOB supports 3 signature types. Orders must identify what signature type they use. The available typescript and python clients abstract the complexity of signing and preparing orders with the following signature types by allowing a funder address and signer type to be specified on initialization. The supported signature types are:Type | ID | Description |
---|---|---|
EOA | 0 | EIP712 signature signed by an EOA |
POLY_PROXY | 1 | EIP712 signatures signed by a signer associated with funding Polymarket proxy wallet |
POLY_GNOSIS_SAFE | 2 | EIP712 signatures signed by a signer associated with funding Polymarket gnosis safe wallet |