Current plan for ShareSwap Module:
1) Redeem ac specified. Original asset specified.
2) Module loops through all original assets sent to redeem ac and for each one...
a) Module checks sender_account, transactionID, amount of assets
b) Module checks for replacement assets sent to sender ac with above transactionID as unencrypted message.
c) If not found, then send appropriate amount of assets to sender account with transaction ID as unencrypted message
3) Module is rerun a few hours or days later. Each time, it should check and then ignore transactions involving assets already swapped.
Module will be able to be run in a 'checking' mode which will report the assets which need to be sent, but not do any sending (won't do part c). This can be used first to make sure there's nothing weird going on.
Hoping to have something available for testing tomorrow. Any flaws in the above prodecure?
I don't see any problems with those steps.
I don't have any Token on AE, but happy to test it with some other asset, or on test net. I'll be available in about 21 hours from the time I'm posting this (can never figure out what time that is in other places
