In sonic swap: https://app.sonic.ooo/swap
for any swap this type of entry gets registered as transaction in sonic canister:
{
"time":"1642878319429",
"operation":"swap",
"details":[
["pairId", {"Text":"aanaa-xaaaa-aaaah-aaeiq-cai:utozz-siaaa-aaaam-qaaxq-cai"}],
["from", {"Text":"utozz-siaaa-aaaam-qaaxq-cai"}],
["to", {"Text":"aanaa-xaaaa-aaaah-aaeiq-cai"}],
["amountIn", {"U64":"40000000"}],
["amountOut", {"U64":"5934203173278"}],
["reserve0", {"U64":"50190825314809436"}],
["reserve1", {"U64":"337340570120"}],
["fee", {"U64":"120000"}]
],
"caller":{"__principal__":"5c26x-uoqgu-y3wa6-rftrl-ay476-dkauc-pdjnb-fxbwl-sspgx-35dfh-5ae"}
}
In this entry, the decimal precision and unit/currency of the amounts are not specified. For example, it’s unclear in which currency the fee is denoted, as well as for the amountIn and amountOut. I’m unsure if the DFINITY forum is the right platform for this question. Could someone from the Sonic team clarify or provide assistance? Thank you.