Market Maker Smart Contract
{"id":"ssc-mainnet1","json":{"contractName":"contract","contractAction":"update","contractPayload":{"name":"marketmaker","params":"","code":"Y29uc3QgQkFTRV9TWU1CT0w9IlNURUVNUCIsQkFTRV9TWU1CT0xfUFJFQ0lTSU9OPTgsREVCVUdfTU9ERT0hMTthY3Rpb25zLmNyZWF0ZVNTQz1hc3luYygpPT57fTtjb25zdCBnZXRPcmRlckJvb2s9YXN5bmModGFibGUsc3ltYm9sLGRlc2NlbmRpbmcpPT5hd2FpdCBhcGkuZGIuZmluZEluVGFibGUoIm1hcmtldCIsdGFibGUse3N5bWJvbDpzeW1ib2x9LDAsMCxbe2luZGV4OiJwcmljZURlYyIsZGVzY2VuZGluZzpkZXNjZW5kaW5nfSx7aW5kZXg6Il9pZCIsZGVzY2VuZGluZzohMX1dKSxjYW5jZWxPcmRlcnM9YXN5bmMob3JkZXJzLHR5cGUpPT57Zm9yKGxldCBrPTA7azxvcmRlcnMubGVuZ3RoO2srPTEpe2NvbnN0IG9yZGVyPW9yZGVyc1trXTthd2FpdCBhcGkuZXhlY3V0ZVNtYXJ0Q29udHJhY3QoIm1hcmtldCIsImNhbmNlbCIse2FjY291bnQ6b3JkZXIuYWNjb3VudCx0eXBlOnR5cGUsaWQ6b3JkZXIudHhJZH0pfX0sZ2V0Q2xvc2VzdEFtb3VudD0oYmFzZUN1cnJlbmN5LHByaWNlLHByZWNpc2lvbik9PmJhc2VDdXJyZW5jeS5kaXZpZGVkQnkocHJpY2UpLnRvRml4ZWQocHJlY2lzaW9uKSxjb3VudEJhbGFuY2VJbkJ1eU9yZGVycz1vcmRlcnM9Pm9yZGVycy5yZWR1Y2UoKHQsdik9PnQucGx1cyhhcGkuQmlnTnVtYmVyKHYudG9rZW5zTG9ja2VkKSksYXBpLkJpZ051bWJlcigwKSksY291bnRCYWxhbmNlSW5TZWxsT3JkZXJzPW9yZGVycz0+b3JkZXJzLnJlZHVjZSgodCx2KT0+dC5wbHVzKGFwaS5CaWdOdW1iZXI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