Byte32 Decoding
In v2.1 we introduced byte32
encoding for function and event variables (to save storage and gas costs). We provide examples to decode them.
Many parameters (like amountsIn
, totalFees
in Swap event) are packed with the amounts in for both tokens X and Y and encoded into bytes32
. Below is an example of how to decode them.
Last updated