THE SIBLINGS
two sibling functions · one correct, one cracked · the classic asymmetry tell
quoteTransferRemote(.., trustAmount)
→
_bridgeTrust(trustAmount, ..)
same amount
quoted · spent
intact
bridgeTrust()
INTACT
quoteTransferRemote(.., minTrustOut)
→
_bridgeTrust(amountOut, ..)
different amounts
fee too low
revert
swapAndBridgeWithETH()
BROKEN
ANALYTICAL CUBISM
when sibling functions rhyme but diverge,
you look for the broken statue.
TrustSwapAndBridgeRouter.sol · Intuition periphery · Medium · DoS
fix · quote bridgeFee AFTER swap resolves, using amountOut (not minTrustOut)
NODE
M