Hi. I’m new to buildings contracts on utxo based blockchains. It can have a lot of benefits as we can interpretate each fungible assets as unique. However i cannot find any good example in fuel how to deal with utxos in sway.
As i am building a credit protocol. I would like to specifically know if depositor utxo amount is still available in the pool, or if has been transacted (so i would like to find the transaction trail). Is that possible for a contract to use as input data?
When funds are sent from a user to a smart contract, the funds change from a UTXO into a more traditional “account” model. So Pools don’t actually custody any UTXOs.