wormhole-foundation / example-liquidity-layer

Apache License 2.0
11 stars 11 forks source link

solana: Limit redeemer message size #105

Closed johnsaigle closed 4 months ago

johnsaigle commented 4 months ago
          We should think about how large these redeemer messages will be though, even though it would be unlikely they reach lengths greater than the max size of a Solana account.

_Originally posted by @a5-pickle in https://github.com/wormhole-foundation/example-liquidity-layer/pull/103#discussion_r1581251514_

The current limit of a redeemer message is u32::MAX on the level of the code (message serialization) though significantly shorter due to Solana runtime constraints (account size, CU cost,...)

This is fine but it would be better to bound this to something realistic and make it more explicit what these messages should look like.