XFI::T
inside module 0x1::XFI
can be used as type parameter in generic functions, like in this example:withdraw_from_sender<T>
and deposit<T>
which contain generic type T
. By passing XFI::T
as type parameter into these generic functions, we make them work with XFI balances. Note that other coin types can too be passed as type parameters.0x1::Coins
module to use in smart contracts: