You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if two people perform the same action at the same time, that action should be performed at the same price.
weaker form: chance oughtn't make one a winner and another a loser.
This generalizes to n people.
Imagine alice and bob each withdraw 10 liquidity tokens at the same time. Well, the pools can't support them each doing so for the same price, the unfair solution is as far as I know status quo for the life of the day trader: by essentially random chance or microseconds-difference in transaction submission, either alice or bob pays more for their 10 liquidity tokens. Something fair would be "if two people perform the same action at the same time, that action should be performed at the same price".
The way we see it (per a phonecall with Isaac) is that the unfair solution is valid as long as we're clear that that's what we're doing, while the fair solution would be nice.
Deliverable
I think the audit language should basically recapitulate/summarize Nick's poolpicking and Morgan's parallelization documents with respect to properties like this.
Notes
Isaac met someone who claimed that their concurrency solution had the strong form of this property. They did it by making all transactions length two in UTXOs: the first UTXO would calculate a transaction plan that takes the current state of the market and fixes prices for the transactions, and the second executes with those prices.
The text was updated successfully, but these errors were encountered:
Description
n
people.Imagine alice and bob each withdraw 10 liquidity tokens at the same time. Well, the pools can't support them each doing so for the same price, the unfair solution is as far as I know status quo for the life of the day trader: by essentially random chance or microseconds-difference in transaction submission, either alice or bob pays more for their 10 liquidity tokens. Something fair would be "if two people perform the same action at the same time, that action should be performed at the same price".
The way we see it (per a phonecall with Isaac) is that the unfair solution is valid as long as we're clear that that's what we're doing, while the fair solution would be nice.
Deliverable
I think the audit language should basically recapitulate/summarize Nick's poolpicking and Morgan's parallelization documents with respect to properties like this.
Notes
Isaac met someone who claimed that their concurrency solution had the strong form of this property. They did it by making all transactions length two in UTXOs: the first UTXO would calculate a transaction plan that takes the current state of the market and fixes prices for the transactions, and the second executes with those prices.
The text was updated successfully, but these errors were encountered: