0age
@0age
open-sourcing another piece of the cross-chain swap puzzle a framework for settling swaps on destination chains, handling disputes between fillers & redirecting MEV to swappers in the process: Tribunal ☝️ https://github.com/Uniswap/Tribunal let's get into what Tribunal's about 💬
3 replies
27 recasts
75 reactions
0age
@0age
so there are two "sides" to a cross-chain swap using The Compact or other resource locks the "fill side" is the chain where their output tokens are received the "claim side" is the chain where their input tokens are held & claimed by a filler
1 reply
0 recast
8 reactions
0age
@0age
most development effort thus far for The Compact has focused on the claim side that's where the resource locks are, of course allocators (mediating resource locks) & arbiters (processing claims) both live on the claim side too but arbiters need to act on a cross-chain action
1 reply
0 recast
1 reaction
0age
@0age
that's where Tribunal comes in it serves two core functions first, it protects fillers from settling a swap that another filler got to first second, it protects swappers from having claims processed from unrelated payments (like if you tried to do 2 cross-chain swaps at once)
1 reply
0 recast
1 reaction
0age
@0age
this initial version of Tribunal is focused on fill side chains with sequencers that enforce priority ordering this just means the sequencer orders all transactions in the block by gas price it's the de-facto behavior on all OP-stack chains today, & Unichain will enforce this
1 reply
0 recast
1 reaction
0age
@0age
if a chain commits to priority ordering, you can actually run a fair auction where any filler can compete to fill the swap the output tokens the filler will pay are increased (or the input tokens they can claim are decreased) based on the priority fee it's beautifully simple
1 reply
0 recast
1 reaction
0age
@0age
for chains that don't use priority ordering, you can change out the priority tax mechanic and use something like a reverse dutch auction or an RFQ where the filler is selected based on a quote there's also a "directive" that maps to a cross-chain message Tribunal will dispatch
1 reply
0 recast
1 reaction