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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