Closed vivekteega closed 1 year ago
Contents of the flodata for dynamic price change
Things to keep in mind
price update {"price-update":{"contract-name": "", "contract-address": "", "price": 3}}
Contract Creation Create Smart Contract with the name swap-rupee-opeth@ of the type continuous-event* at the address oTzrcpLPRXsejSdYQ3XN6V4besrAPuJQrk$ with contract-conditions : (1) subtype = tokenswap (2) accepting_token = rupee# (3) selling_token = opeth# (4) price = '0.4' (5) priceType = dynamic (6) oracle_address = 'odzijPEJ1ToULkvRKiKYuzgbGFSXgC4R1o' end-contract-conditions
Contract deposits Deposit 15 opeth# to swap-rupee-opeth@ its FLO address being oTzrcpLPRXsejSdYQ3XN6V4besrAPuJQrk$ with deposit-conditions: (1) expiryTime= Thu Dec 8 2022 18:00:00 GMT+0530
Contract participation send 0.8 rupee# to swap-rupee-opeth@ its FLO address being oTzrcpLPRXsejSdYQ3XN6V4besrAPuJQrk$
Does statef have a role in dynamic pricing?
statef could have a role in dynamic pricing, we haven't figured out a way to do rollbacks with statef .. so it is a feature still in development and not usable as of now. Closing this issue until future solutions emerge
Currently the token swap price is static. Create dynamic pricing so the price is pulled from the blockchain