Closed MonsieurNicolas closed 3 months ago
Is this still an issue? An XDR to reproduce would be helpful, I'm not quite sure what I'm looking for.
yes, you can look at this example
Account
and Trustline
have balance
in raw only, like balance: 487864711
Offer amount
and Trustline limit
are mixed.
Looks like right now the only gap is on balance
so rendering it as mixed would probably fix this issue
Would be great to create type Amount int64
type in stellar-core so finding fields that should be rendered as amounts would be easier.
Fixed in new Lab
Amounts are returned with what seems to be an arbitrary form.
An amount value is returned as either a raw value or both fixed point and raw
Examples:
a trustline will show up with fields (right next to each other):
balance: 337698512325
this is the raw valuelimit: 100000000000 (raw: 1000000000000000000)
both are returnedLumens are returned the same way, for example in
AccountEntry
, you can seebalance: 105032704
this is raw but in offers and payments it's the fixed point.In general, I would imagine that any int64 that is supposed to be an amount should be rendered the same way.