Polymarket Collateral Adapter
Polygon PoS Polymarket0xada100874d00e3331d00f2007a9c336a65009718
Solidity v0.8.34+commit.80d5c536
Admin & Risk
Who can change the rules?
Detected pausable and ownable controls from the verified ABI.
Current controls
- Owner
- 0x47ebfac3353314c788b96cdcbf41daadfe03629c ↗ Polygonscan → smarts
Architecture
Polymarket contract role
Polymarket Collateral Adapter
Bridges Polymarket pUSD collateral into the standard Conditional Tokens path used by binary markets.
Overview
Read Functions
Block #87,395,608 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | |
| roles | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | |
| roles | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| result | address |
Parameters
| Name | Type | Description |
|---|---|---|
| pendingOwner | address |
Returns
| Name | Type | Description |
|---|---|---|
| result | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| user | address |
Returns
| Name | Type | Description |
|---|---|---|
| roles | uint256 |
ERC-165 interface detection
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 | - The interface identifier to check |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Write Functions
Adds a new admin
Parameters
| Name | Type | Description |
|---|---|---|
| _admin | address | The address of the new admin |
Parameters
| Name | Type | Description |
|---|---|---|
| pendingOwner | address |
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | |
| roles | uint256 |
Merges conditional token positions back into collateral
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | bytes32 | |
| _conditionId | bytes32 | The condition ID to merge on |
| — | uint256[] | |
| _amount | uint256 | The amount of each position to merge |
Handles receipt of a batch of ERC1155 tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256[] | |
| — | uint256[] | |
| — | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes4 | The function selector for acceptance. |
Handles receipt of a single ERC1155 token.
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | address | |
| — | uint256 | |
| — | uint256 | |
| — | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes4 | The function selector for acceptance. |
Pauses the wrapping/unwrapping of a supported asset
Parameters
| Name | Type | Description |
|---|---|---|
| _asset | address | The asset to pause |
Redeems conditional token positions for collateral after resolution
Polymarket context Redeems winning or partially winning outcome tokens after a condition has resolved.
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | bytes32 | |
| _conditionId | bytes32 | The condition ID to redeem |
| — | uint256[] |
Removes an admin
Parameters
| Name | Type | Description |
|---|---|---|
| _admin | address | The address of the admin to remove |
Parameters
| Name | Type | Description |
|---|---|---|
| roles | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| user | address | |
| roles | uint256 |
Splits collateral into conditional token positions
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | bytes32 | |
| _conditionId | bytes32 | The condition ID to split on |
| — | uint256[] | |
| _amount | uint256 | The amount of collateral to split |
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address |
Unpauses the wrapping/unwrapping of a supported asset
Parameters
| Name | Type | Description |
|---|---|---|
| _asset | address | The asset to unpause |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| pendingOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| pendingOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldOwner | address | ✓ | |
| newOwner | address | ✓ |
Emitted when wrapping/unwrapping is paused.
| Name | Type | Indexed | Description |
|---|---|---|---|
| asset | address | ✓ | The paused asset address. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | |
| roles | uint256 | ✓ |
Emitted when wrapping/unwrapping is unpaused.
| Name | Type | Indexed | Description |
|---|---|---|---|
| asset | address | ✓ | The unpaused asset address. |