I've been working on this already for a week or two, so this log is to update on where this project is right now
Essentially, trading is working, and the UI isn't beautiful but it is user-friendly. Everything is still on the Ropsten Testnet. All the tokens are using a fixed price system right now, so it wouldn't work for any non-stable tokens yet.
Currently I am working on an Ethereum smart contract capable of processing orders, thus allowing the token price to fluctuate.
Important thing: "latching contracts"
This is a term I created for contracts that 'latch' to a certain token to enable trading.
Trading protocols for smart contracts
There are several trading protocols right now:
"legacy" and "Tr100" are considered obsolete - not going over them.
Tr100b and Tr100b-compat
Contracts that use either of these protocols can:
- tell you if a certain amount of tokens can be traded
- tell you what the fee is, or zero if none
- trade (obviously)
- tell you what the cost of a buy or revenue of a sale would be
- tell you the total token supply
- tell you the token balance of an address
The difference between them is that Tr100-compat is designed for latching contracts, and can also tell you which contract has been latched.
That is the state of the project thus far!