-
Notifications
You must be signed in to change notification settings - Fork 18
evm: use messageFee > 0 #217
Conversation
…astMarketOrder & placeMarketOrder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment that I'd like to see a response to. Otherwise looks good w.r.t. Token Router market orders and Matching Engine's execute order.
@fergarrui it would be nice to have the same sort of forge test(s) that demonstrate that 2x message fee would be required for the fast market order (since there are two Wormhole messages required to execute).
As far as the Token Router market order, I feel like this should be a forge test instead of in the typescript test just to be consistent with the other tests. I don't have a strong opinion here.
cc: @gator-boi in case you had any thoughts.
@@ -1,5 +1,5 @@ | |||
export AVALANCHE_RPC=https://api.avax.network/ext/bc/C/rpc | |||
export ETHEREUM_RPC=https://rpc.ankr.com/eth | |||
export ETHEREUM_RPC=https://eth.llamarpc.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the Ankr RPC not work anymore or is it flaky? Just curious how you chose this RPC provider as opposed to another public one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ankr free tier is not supported anymore. Chose that one from chainlist, personally used it for other scripts, but we can choose a different one too
Are there existing tests already for that flow where 2 messages are sent? Thanks! |
I actually meant this workflow in the Token Router: https://github.com/wormhole-foundation/example-liquidity-layer/blob/main/evm/src/TokenRouter/assets/PlaceMarketOrder.sol#L144-L221. Check out the TokenRouter.t.sol file for calls to |
I see what you mean, true, I added the same test for |
placeMarketOrder
&placeFastMarketOrder
for EVM