For exchanges -
If you are using events to keep track of FLOW balance in accounts, you will have to make the following changes to your client code,
-
Where you are listening for the deposited event,
A.1654653399040a61.FlowToken.TokensDeposited(amount: UFix64, to: Address?)
defined here
Listen for the following event instead,
A.0xf233dcee88fe0abe.FungibleToken.Deposited(type: String, amount: UFix64, to: Address?, toUUID: UInt64, depositedUUID: UInt64)
defined here
where
type
will be0x1654653399040a61.FlowToken.Vault
-
Similarly, where you are listening for the withdraw event,
A.1654653399040a61.FlowToken.TokensWithdrawn(amount: UFix64, from: Address?)
defined here
Listen for the following event instead,
A.0xf233dcee88fe0abe.FungibleToken.Withdrawn(type: String, id: UInt64, uuid: UInt64, from: Address?, providerUUID: UInt64)
defined here
where
type
again is0x1654653399040a61.FlowToken.Vault