Find something... ⌘K

Maxy architecture / Smart contracts

Upgrades and roles

Who can change Maxy's contracts, through which delay, and with how many signers. It is for security reviewers who check governance on chain. What each contract enforces: Contract architecture.

Every address and role holder on this page was read on chain. The commands under each table read them again on any public RPC.

Timelocks

No one can replace the settler's code in a hurry. Every upgrade passes through a 48-hour timelock on all five chains, so partners and users always have two days to review a change before it can take effect. Pausing the settler never blocks a cancel, a slash or a refund, so no escrow can be trapped.

Each settler is an EIP-1967 transparent proxy. Its admin is a ProxyAdmin contract owned by an OpenZeppelin TimelockController, so an upgrade must be scheduled on the timelock and runs only after the timelock's delay. Anyone may execute a scheduled operation once the delay has passed.

ChainTimelockProxyAdmingetMinDelay()
Base0xc2779e2E262acC362662716E7eFEF817508f02430x87a845621eed6ade7fa61d6de559b85976449c63172800 (48 hours)
Arbitrum0x76cA52dfC033034b11c64BF246BD02Bca3df55280x565497e73c1fffc00fa3e2e57de7c7ae1517331f172800 (48 hours)
Robinhood Chain0x76cA52dfC033034b11c64BF246BD02Bca3df55280x565497e73c1fffc00fa3e2e57de7c7ae1517331f172800 (48 hours)
BNB Chain0x402D5b4bEEA3Bb9e656C5E27D268d0B7C356Dcf80x8cc7fc6bedee5cd58837e36ca20ea1a078419a50172800 (48 hours)
Avalanche0x402D5b4bEEA3Bb9e656C5E27D268d0B7C356Dcf80x8cc7fc6bedee5cd58837e36ca20ea1a078419a50172800 (48 hours)

Check a timelock's delay in one line, or start from the settler, on any chain:

curl Copy
cast call $TIMELOCK "getMinDelay()(uint256)" --rpc-url $RPC ADMIN_SLOT=0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 PA=0x$(cast storage $SETTLER $ADMIN_SLOT --rpc-url $RPC | cut -c27-) TL=$(cast call $PA "owner()(address)" --rpc-url $RPC) cast call $TL "getMinDelay()(uint256)" --rpc-url $RPC

PA is the ProxyAdmin and TL the timelock. Each getMinDelay prints the delay in seconds: 172800 is 48 hours.

Roles

Every privileged role on Maxy's contracts is held by a multisig or by the timelock. No single key can replace a contract's code or change what a payment proof must show, and no one can move an escrow outside its four exits. Pausing stops new escrows and commits, and never blocks a cancel, a settlement, a slash or a refund.

The timelock owns the settler's ProxyAdmin and holds the admin role of the settler, the verifier (its minimum confirmations and one-time checkpoint), the Bitcoin output registry and the price oracle. Each chain's governance Safe proposes and can cancel timelock operations, and holds the settler's governance and pauser roles, the verifier's fee admin role, the oracle admin role and the registry's pauser role. What each admin function does: Contracts.

ChainTimelockTypeGovernanceType
Base0xc2779e2E262acC362662716E7eFEF817508f0243Timelock0x35a17b79c60812f84ec69371c7ff3843d72116e1Safe multisig
Arbitrum0x76cA52dfC033034b11c64BF246BD02Bca3df5528Timelock0xe4a257c5e1ec4257118016603a37ee7b36ba7b2fSafe multisig
Robinhood Chain0x76cA52dfC033034b11c64BF246BD02Bca3df5528Timelock0x8beb454ea0e70735e119e3519943cca7518037ddSafe multisig
BNB Chain0x402D5b4bEEA3Bb9e656C5E27D268d0B7C356Dcf8Timelock0xab7bc050910492b0363512a1d0351005d310de2fSafe multisig
Avalanche0x402D5b4bEEA3Bb9e656C5E27D268d0B7C356Dcf8Timelock0x526d99c9e2d25df232a306d531054f4c5faeab8cSafe multisig

Check a Safe's signers and threshold, and who holds a role, with any public RPC:

curl Copy
cast call $SAFE "getThreshold()(uint256)" --rpc-url $RPC cast call $SAFE "getOwners()(address[])" --rpc-url $RPC cast call $SETTLER "hasRole(bytes32,address)(bool)" $(cast keccak "PAUSER_ROLE") $SAFE --rpc-url $RPC

Solana

The Solana settlement program cannot be changed. Its upgrade authority has been revoked, which makes the deployed code immutable: the code that was reviewed is the code that runs. The remaining governance roles are held by three multisigs, so no single key can change a setting.