codex-contracts-eth/contracts
Eric 73a2ca0bd3
feat: adds an optional `payoutAddress` to allow payouts to be paid to separate address (#144)
* initial commit for splitting payouts

Collateral goes to slot's host address, while reward payouts go to the slot's host payoutAddress

* Add fillSlot overload to make payoutAddress "optional"

* add tests for payoutAddress

* add doc to patchFillSlotOverloads

* formatting

* remove optional payoutAddress parameter

* Move payoutAddress to freeSlot

- remove payoutAddress parameter from `fillSlot`
- remove `payoutAddress` from slot struct and storage
- add payoutAddress parameter to `freeSlot`, preventing the need for storage

* formatting

* update certora spec to match updated function signature

* Add withdrawAddress to withdrawFunds

- prevent erc20 msg.sender blacklisting

* Update tests for paying out to withdrawAddress

* formatting

* Add collateralRecipient

* refactor: change withdrawFunds and freeSlot overloads

- `withdrawFunds` now has an option withdrawRecipient parameter
- `freeSlot` now has two optional parameters: rewardRecipient, and collateralRecipient. Both or none must be specified.

* update certora spec for new sigs
2024-08-19 17:09:48 +10:00
..
Configuration.sol chore: add `downtimeProduct` configuration parameter (#138) 2024-08-14 15:50:32 +10:00
Endian.sol Update solidity to 0.8.23 2024-01-25 13:08:10 +01:00
FuzzMarketplace.sol chore: add `downtimeProduct` configuration parameter (#138) 2024-08-14 15:50:32 +10:00
Groth16.sol uint -> uint256 2024-03-13 15:25:59 +01:00
Groth16Verifier.sol Provide all gas to precompiles 2024-03-13 15:25:59 +01:00
Marketplace.sol feat: adds an optional `payoutAddress` to allow payouts to be paid to separate address (#144) 2024-08-19 17:09:48 +10:00
Periods.sol Update solidity to 0.8.23 2024-01-25 13:08:10 +01:00
Proofs.sol chore(certora): slot's missed periods count should be equal to the count of slot's missing periods set to true (#155) 2024-08-15 12:51:14 +02:00
Requests.sol feat: expiry specified as duration (#99) 2024-05-06 15:13:32 +02:00
StateRetrieval.sol Update solidity to 0.8.23 2024-01-25 13:08:10 +01:00
TestEndian.sol Set up certora and implement first rules (#122) 2024-07-24 18:50:18 +02:00
TestMarketplace.sol Set up certora and implement first rules (#122) 2024-07-24 18:50:18 +02:00
TestProofs.sol Set up certora and implement first rules (#122) 2024-07-24 18:50:18 +02:00
TestToken.sol Set up certora and implement first rules (#122) 2024-07-24 18:50:18 +02:00
TestVerifier.sol Represent elements from field F_{p^2} as `real + i * imag` 2024-02-21 10:42:41 +01:00