Can Mosaic tokens be exchanged by smart contract on NEM?
Example:
Person A creates Mosaic token "apple"
Person B creates Mosaic token “pears”
Person A posts a contract and agrees to swap 1 apple for 2 pears valid for X hours from Person B
Person B accepts contract agreeing to swap 2 pears for the 1 apple
Swap between both parties only occurs when B commits to send 1 apple, Person A immediately receives 2 pears.
This is how it works on ByteBall, can NEM do this? Or will it be able to do this in the future?
If it can’t NEM Mosaic tokens will only be exchangeable through centralized exchanges?
Any answer appreciated?