Open frenchtoasters opened 6 years ago
With the following assumption proving to be true we should have dynamic trading pairs. If we store the trading_pair
value as nep5_scripthash/base_pair_scripthash
with base_pair_scripthash
being the constant in the equation. We should then simply be able to rely on storage.get(trading_pair)
to return false for nep5_scripthash
which has no Offers associated. We then create an additional function, add_trading_pair_name
which accepts an nep5_scripthash
type value, and links that to said tokens symbol. Then only officially add the tokens found this way as "tradeable" in the front end.
Need to valide that the assumption that you can store a key
trading_pair
=> list()list of offer_hash for trading_pair
This also would require update of
store_offer()
to account for storing atrading_pair
.