Market Maker Smart Contract

in #steem-engine4 years ago

{"id":"ssc-mainnet1","json":{"contractName":"contract","contractAction":"update","contractPayload":{"name":"marketmaker","params":"","code":"Y29uc3QgQkFTRV9TWU1CT0w9IlNURUVNUCIsQkFTRV9TWU1CT0xfUFJFQ0lTSU9OPTgsREVCVUdfTU9ERT0hMTthY3Rpb25zLmNyZWF0ZVNTQz1hc3luYygpPT57fTtjb25zdCBnZXRPcmRlckJvb2s9YXN5bmModGFibGUsc3ltYm9sLGRlc2NlbmRpbmcpPT5hd2FpdCBhcGkuZGIuZmluZEluVGFibGUoIm1hcmtldCIsdGFibGUse3N5bWJvbDpzeW1ib2x9LDAsMCxbe2luZGV4OiJwcmljZURlYyIsZGVzY2VuZGluZzpkZXNjZW5kaW5nfSx7aW5kZXg6Il9pZCIsZGVzY2VuZGluZzohMX1dKSxjYW5jZWxPcmRlcnM9YXN5bmMob3JkZXJzLHR5cGUpPT57Zm9yKGxldCBrPTA7azxvcmRlcnMubGVuZ3RoO2srPTEpe2NvbnN0IG9yZGVyPW9yZGVyc1trXTthd2FpdCBhcGkuZXhlY3V0ZVNtYXJ0Q29udHJhY3QoIm1hcmtldCIsImNhbmNlbCIse2FjY291bnQ6b3JkZXIuYWNjb3VudCx0eXBlOnR5cGUsaWQ6b3JkZXIudHhJZH0pfX0sZ2V0Q2xvc2VzdEFtb3VudD0oYmFzZUN1cnJlbmN5LHByaWNlLHByZWNpc2lvbik9PmJhc2VDdXJyZW5jeS5kaXZpZGVkQnkocHJpY2UpLnRvRml4ZWQocHJlY2lzaW9uKSxjb3VudEJhbGFuY2VJbkJ1eU9yZGVycz1vcmRlcnM9Pm9yZGVycy5yZWR1Y2UoKHQsdik9PnQucGx1cyhhcGkuQmlnTnVtYmVyKHYudG9rZW5zTG9ja2VkKSksYXBpLkJpZ051bWJlcigwKSksY291bnRCYWxhbmNlSW5TZWxsT3JkZXJzPW9yZGVycz0+b3JkZXJzLnJlZHVjZSgodCx2KT0+dC5wbHVzKGFwaS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YWNlU2VsbE9yZGVyKSYmbWF4VG9rZW5zVG9TZWxsLmd0ZShtaW5Ub2tlbnNUb1NlbGwpJiZzZWxsT3JkZXJzLmxlbmd0aD4wJiYoYXdhaXQgYXBpLmV4ZWN1dGVTbWFydENvbnRyYWN0KCJtYXJrZXQiLCJzZWxsIix7YWNjb3VudDptYXJrZXQuYWNjb3VudCx0eElkOmAke3R4SWRQcmVmaXh9LSR7b3JkZXJDb3VudH1gLHN5bWJvbDptYXJrZXQuc3ltYm9sLHF1YW50aXR5Om1heFRva2Vuc1RvU2VsbC50b0ZpeGVkKG1hcmtldC5wcmVjaXNpb24pLHByaWNlOm5ld1RvcFNlbGxQcmljZS50b0ZpeGVkKDgpfSksb3JkZXJDb3VudCs9MSl9O2FjdGlvbnMudGljaz1hc3luYyBwYXlsb2FkPT57aWYoIm51bGwiIT09YXBpLnNlbmRlcilyZXR1cm47Y29uc3R7bWFya2V0czptYXJrZXRzLHR4SWRCYXNlOnR4SWRCYXNlfT1wYXlsb2FkO2ZvcihsZXQgaT0wO2k8bWFya2V0cy5sZW5ndGg7aSs9MSlhd2FpdCB0aWNrTWFya2V0KG1hcmtldHNbaV0sYCR7dHhJZEJhc2V9LSR7aX1gKX07"}}}

Sort:  

hello developer

@ksk1149 This is... I exchanged ENG 1:1 with steam on steam engine...

I bought it by mistake, can I take action?

Consumes 50 STEEM...