tx · JDXdVsk1Y2QpRgyPvMJkm6B69XntLDa7qUJpHhLvyw5X

3MtyC1mD9vS4UuKQ6wu2JXKzjUecdY4EW7A:  -0.04000000 Waves

2020.06.09 09:08 [1035455] smart account 3MtyC1mD9vS4UuKQ6wu2JXKzjUecdY4EW7A > SELF 0.00000000 Waves

{ "type": 13, "id": "JDXdVsk1Y2QpRgyPvMJkm6B69XntLDa7qUJpHhLvyw5X", "fee": 4000000, "feeAssetId": null, "timestamp": 1591682957065, "version": 1, "sender": "3MtyC1mD9vS4UuKQ6wu2JXKzjUecdY4EW7A", "senderPublicKey": "37FyP8sdqQUjbk3FX2jBTsn4S4yWMSVx5zmrt4tHZG4s", "proofs": [ "", "nQWL4JtWxL7TtWNVYLEfhFRwRSmaW39JWoRcciJnWKMv8HNrBjzYEKEPtoJE28Vteh3wtqydaPxBCymZNx2NsJp" ], "script": "base64:AgQAAAAGaXNzdWVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUN28VpvJMU5SALh8uAHqP0tA6a//kvfuRBAAAAAdhc3NldElkAQAAACCreFL3LnDOK8fAKT1vqzXQLR1iWc4+MVjjkjakOd/cZQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAmV4BQAAAAckbWF0Y2gwBAAAAARwYWlyCQEAAAAJQXNzZXRQYWlyAAAAAgUAAAAHYXNzZXRJZAUAAAAEdW5pdAQAAAAEc2VsbAkAAfQAAAADCAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAJleAAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAmV4AAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAA2J1eQYEAAAACnRyYWRlV0FWRVMJAQAAAAdleHRyYWN0AAAAAQkABBsAAAACBQAAAAZpc3N1ZXICAAAACnRyYWRlV0FWRVMEAAAADW1pblByaWNlV0FWRVMJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZpc3N1ZXICAAAADW1pblByaWNlV0FWRVMEAAAADW1heFByaWNlV0FWRVMJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACBQAAAAZpc3N1ZXICAAAADW1heFByaWNlV0FWRVMEAAAACmFsZXJ0V0FWRVMJAQAAAAdleHRyYWN0AAAAAQkABB0AAAACBQAAAAZpc3N1ZXICAAAACmFsZXJ0V0FWRVMEAAAAC3RyYWRlVE9LRU5TCQEAAAAHZXh0cmFjdAAAAAEJAAQbAAAAAgUAAAAGaXNzdWVyAgAAAAt0cmFkZVRPS0VOUwMFAAAABHNlbGwDAwUAAAAKdHJhZGVXQVZFUwkAAAAAAAACCAgFAAAAAmV4AAAACGJ1eU9yZGVyAAAACWFzc2V0UGFpcgUAAAAEcGFpcgcDAwkAAGcAAAACCAUAAAACZXgAAAAFcHJpY2UFAAAADW1pblByaWNlV0FWRVMJAABnAAAAAgUAAAANbWF4UHJpY2VXQVZFUwgFAAAAAmV4AAAABXByaWNlBwYJAAACAAAAAQIAAAAFYWxlcnQJAAACAAAAAQIAAAAvVGVzdGUwMyBlIG5lZ29jaWF2ZWwgYXBlbmFzIGVtIEJUQywgRVRILCBaRUMuLi4DBQAAAANidXkGBwa/TFcJ", "chainId": 84, "height": 1035455, "spentComplexity": 0 } View: original | compacted Prev: FyKmZW7NPVp1bkK9VgeKMsaYFhHjCiBR5eebK4Sv9uHy Next: 56ZK2JDQVddwdrBRB9LFvThFTZD2HJKK22wgwBgGT8b8 Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3MtyC1mD9vS4UuKQ6wu2JXKzjUecdY4EW7A')
4-let assetId = base58'FqxaRuHsZxHmY48gCs2EdR4JKy81US4k8XyedBbeRD8V'
5-let BTCId = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'
6-let ETHId = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu'
7-let LTCId = base58'HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk'
8-let ZECId = base58'BrjUWjndUanm5VsJkbUip8VRYy6LWJePtxya3FNv4TQa'
9-let DASHId = base58'B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H'
10-let XMRId = base58'5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3'
11-let USDId = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck'
12-let EURId = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU'
4+let assetId = base58'CYM8dXSMABsBpTFupPpWnVBLJ4TbzkJYD95gH5Ab1W3W'
135 match tx {
146 case ex: ExchangeTransaction =>
157 let pair = AssetPair(assetId, unit)
168 let sell = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], ex.sellOrder.senderPublicKey)
17- let buy = false
9+ let buy = true
1810 let tradeWAVES = extract(getBoolean(issuer, "tradeWAVES"))
1911 let minPriceWAVES = extract(getInteger(issuer, "minPriceWAVES"))
2012 let maxPriceWAVES = extract(getInteger(issuer, "maxPriceWAVES"))
2113 let alertWAVES = extract(getString(issuer, "alertWAVES"))
22- let tradeBTC = extract(getBoolean(issuer, "tradeBTC"))
23- let minPriceBTC = extract(getInteger(issuer, "minPriceBTC"))
24- let maxPriceBTC = extract(getInteger(issuer, "maxPriceBTC"))
25- let alertBTC = extract(getString(issuer, "alertBTC"))
26- let tradeETH = extract(getBoolean(issuer, "tradeETH"))
27- let minPriceETH = extract(getInteger(issuer, "minPriceETH"))
28- let maxPriceETH = extract(getInteger(issuer, "maxPriceETH"))
29- let alertETH = extract(getString(issuer, "alertETH"))
30- let tradeLTC = extract(getBoolean(issuer, "tradeLTC"))
31- let minPriceLTC = extract(getInteger(issuer, "minPriceLTC"))
32- let maxPriceLTC = extract(getInteger(issuer, "maxPriceLTC"))
33- let alertLTC = extract(getString(issuer, "alertLTC"))
34- let tradeZEC = extract(getBoolean(issuer, "tradeZEC"))
35- let minPriceZEC = extract(getInteger(issuer, "minPriceZEC"))
36- let maxPriceZEC = extract(getInteger(issuer, "maxPriceZEC"))
37- let alertZEC = extract(getString(issuer, "alertZEC"))
38- let tradeDASH = extract(getBoolean(issuer, "tradeDASH"))
39- let minPriceDASH = extract(getInteger(issuer, "minPriceDASH"))
40- let maxPriceDASH = extract(getInteger(issuer, "minPriceDASH"))
41- let alertDASH = extract(getString(issuer, "alertDASH"))
42- let tradeXMR = extract(getBoolean(issuer, "tradeXMR"))
43- let minPriceXMR = extract(getInteger(issuer, "minPriceXMR"))
44- let maxPriceXMR = extract(getInteger(issuer, "minPriceXMR"))
45- let alertXMR = extract(getString(issuer, "alertXMR"))
46- let tradeUSD = extract(getBoolean(issuer, "tradeUSD"))
47- let minPriceUSD = extract(getInteger(issuer, "minPriceUSD"))
48- let maxPriceUSD = extract(getInteger(issuer, "minPriceUSD"))
49- let alertUSD = extract(getString(issuer, "alertUSD"))
50- let tradeEUR = extract(getBoolean(issuer, "tradeEUR"))
51- let minPriceEUR = extract(getInteger(issuer, "minPriceEUR"))
52- let maxPriceEUR = extract(getInteger(issuer, "minPriceEUR"))
53- let alertEUR = extract(getString(issuer, "alertEUR"))
5414 let tradeTOKENS = extract(getBoolean(issuer, "tradeTOKENS"))
5515 if (sell)
5616 then if (if (tradeWAVES)
6121 else false)
6222 then true
6323 else throw("alert")
64- else if (if (tradeBTC)
65- then (ex.sellOrder.assetPair.priceAsset == BTCId)
66- else false)
67- then if (if ((ex.price >= minPriceBTC))
68- then (maxPriceBTC >= ex.price)
69- else false)
70- then true
71- else throw("alert")
72- else if (if (tradeETH)
73- then (ex.sellOrder.assetPair.priceAsset == ETHId)
74- else false)
75- then if (if ((ex.price >= minPriceETH))
76- then (maxPriceETH >= ex.price)
77- else false)
78- then true
79- else throw("alert")
80- else if (if (tradeLTC)
81- then (ex.sellOrder.assetPair.priceAsset == LTCId)
82- else false)
83- then if (if ((ex.price >= minPriceLTC))
84- then (maxPriceLTC >= ex.price)
85- else false)
86- then true
87- else throw("alert")
88- else if (if (tradeZEC)
89- then (ex.sellOrder.assetPair.priceAsset == ZECId)
90- else false)
91- then if (if ((ex.price >= minPriceZEC))
92- then (maxPriceZEC >= ex.price)
93- else false)
94- then true
95- else throw("alert")
96- else if (if (tradeDASH)
97- then (ex.sellOrder.assetPair.priceAsset == DASHId)
98- else false)
99- then if (if ((ex.price >= minPriceDASH))
100- then (maxPriceDASH >= ex.price)
101- else false)
102- then true
103- else throw("alert")
104- else if (if (tradeXMR)
105- then (ex.sellOrder.assetPair.priceAsset == XMRId)
106- else false)
107- then if (if ((ex.price >= minPriceXMR))
108- then (maxPriceXMR >= ex.price)
109- else false)
110- then true
111- else throw("alert")
112- else if (if (tradeUSD)
113- then (ex.sellOrder.assetPair.priceAsset == USDId)
114- else false)
115- then if (if ((ex.price >= minPriceUSD))
116- then (maxPriceUSD >= ex.price)
117- else false)
118- then true
119- else throw("alert")
120- else if (if (tradeEUR)
121- then (ex.sellOrder.assetPair.priceAsset == EURId)
122- else false)
123- then if (if ((ex.price >= minPriceEUR))
124- then (maxPriceEUR >= ex.price)
125- else false)
126- then true
127- else throw("alert")
128- else if (tradeTOKENS)
129- then true
130- else throw("Teste03 e negociavel apenas em BTC, ETH, ZEC...")
24+ else throw("Teste03 e negociavel apenas em BTC, ETH, ZEC...")
13125 else if (buy)
13226 then true
13327 else false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 2 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let issuer = Address(base58'3MtyC1mD9vS4UuKQ6wu2JXKzjUecdY4EW7A')
4-let assetId = base58'FqxaRuHsZxHmY48gCs2EdR4JKy81US4k8XyedBbeRD8V'
5-let BTCId = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'
6-let ETHId = base58'474jTeYx2r2Va35794tCScAXWJG9hU2HcgxzMowaZUnu'
7-let LTCId = base58'HZk1mbfuJpmxU1Fs4AX5MWLVYtctsNcg6e2C6VKqK8zk'
8-let ZECId = base58'BrjUWjndUanm5VsJkbUip8VRYy6LWJePtxya3FNv4TQa'
9-let DASHId = base58'B3uGHFRpSUuGEDWjqB9LWWxafQj8VTvpMucEyoxzws5H'
10-let XMRId = base58'5WvPKSJXzVE2orvbkJ8wsQmmQKqTv9sGBPksV4adViw3'
11-let USDId = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck'
12-let EURId = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU'
4+let assetId = base58'CYM8dXSMABsBpTFupPpWnVBLJ4TbzkJYD95gH5Ab1W3W'
135 match tx {
146 case ex: ExchangeTransaction =>
157 let pair = AssetPair(assetId, unit)
168 let sell = sigVerify(ex.sellOrder.bodyBytes, ex.sellOrder.proofs[0], ex.sellOrder.senderPublicKey)
17- let buy = false
9+ let buy = true
1810 let tradeWAVES = extract(getBoolean(issuer, "tradeWAVES"))
1911 let minPriceWAVES = extract(getInteger(issuer, "minPriceWAVES"))
2012 let maxPriceWAVES = extract(getInteger(issuer, "maxPriceWAVES"))
2113 let alertWAVES = extract(getString(issuer, "alertWAVES"))
22- let tradeBTC = extract(getBoolean(issuer, "tradeBTC"))
23- let minPriceBTC = extract(getInteger(issuer, "minPriceBTC"))
24- let maxPriceBTC = extract(getInteger(issuer, "maxPriceBTC"))
25- let alertBTC = extract(getString(issuer, "alertBTC"))
26- let tradeETH = extract(getBoolean(issuer, "tradeETH"))
27- let minPriceETH = extract(getInteger(issuer, "minPriceETH"))
28- let maxPriceETH = extract(getInteger(issuer, "maxPriceETH"))
29- let alertETH = extract(getString(issuer, "alertETH"))
30- let tradeLTC = extract(getBoolean(issuer, "tradeLTC"))
31- let minPriceLTC = extract(getInteger(issuer, "minPriceLTC"))
32- let maxPriceLTC = extract(getInteger(issuer, "maxPriceLTC"))
33- let alertLTC = extract(getString(issuer, "alertLTC"))
34- let tradeZEC = extract(getBoolean(issuer, "tradeZEC"))
35- let minPriceZEC = extract(getInteger(issuer, "minPriceZEC"))
36- let maxPriceZEC = extract(getInteger(issuer, "maxPriceZEC"))
37- let alertZEC = extract(getString(issuer, "alertZEC"))
38- let tradeDASH = extract(getBoolean(issuer, "tradeDASH"))
39- let minPriceDASH = extract(getInteger(issuer, "minPriceDASH"))
40- let maxPriceDASH = extract(getInteger(issuer, "minPriceDASH"))
41- let alertDASH = extract(getString(issuer, "alertDASH"))
42- let tradeXMR = extract(getBoolean(issuer, "tradeXMR"))
43- let minPriceXMR = extract(getInteger(issuer, "minPriceXMR"))
44- let maxPriceXMR = extract(getInteger(issuer, "minPriceXMR"))
45- let alertXMR = extract(getString(issuer, "alertXMR"))
46- let tradeUSD = extract(getBoolean(issuer, "tradeUSD"))
47- let minPriceUSD = extract(getInteger(issuer, "minPriceUSD"))
48- let maxPriceUSD = extract(getInteger(issuer, "minPriceUSD"))
49- let alertUSD = extract(getString(issuer, "alertUSD"))
50- let tradeEUR = extract(getBoolean(issuer, "tradeEUR"))
51- let minPriceEUR = extract(getInteger(issuer, "minPriceEUR"))
52- let maxPriceEUR = extract(getInteger(issuer, "minPriceEUR"))
53- let alertEUR = extract(getString(issuer, "alertEUR"))
5414 let tradeTOKENS = extract(getBoolean(issuer, "tradeTOKENS"))
5515 if (sell)
5616 then if (if (tradeWAVES)
5717 then (ex.buyOrder.assetPair == pair)
5818 else false)
5919 then if (if ((ex.price >= minPriceWAVES))
6020 then (maxPriceWAVES >= ex.price)
6121 else false)
6222 then true
6323 else throw("alert")
64- else if (if (tradeBTC)
65- then (ex.sellOrder.assetPair.priceAsset == BTCId)
66- else false)
67- then if (if ((ex.price >= minPriceBTC))
68- then (maxPriceBTC >= ex.price)
69- else false)
70- then true
71- else throw("alert")
72- else if (if (tradeETH)
73- then (ex.sellOrder.assetPair.priceAsset == ETHId)
74- else false)
75- then if (if ((ex.price >= minPriceETH))
76- then (maxPriceETH >= ex.price)
77- else false)
78- then true
79- else throw("alert")
80- else if (if (tradeLTC)
81- then (ex.sellOrder.assetPair.priceAsset == LTCId)
82- else false)
83- then if (if ((ex.price >= minPriceLTC))
84- then (maxPriceLTC >= ex.price)
85- else false)
86- then true
87- else throw("alert")
88- else if (if (tradeZEC)
89- then (ex.sellOrder.assetPair.priceAsset == ZECId)
90- else false)
91- then if (if ((ex.price >= minPriceZEC))
92- then (maxPriceZEC >= ex.price)
93- else false)
94- then true
95- else throw("alert")
96- else if (if (tradeDASH)
97- then (ex.sellOrder.assetPair.priceAsset == DASHId)
98- else false)
99- then if (if ((ex.price >= minPriceDASH))
100- then (maxPriceDASH >= ex.price)
101- else false)
102- then true
103- else throw("alert")
104- else if (if (tradeXMR)
105- then (ex.sellOrder.assetPair.priceAsset == XMRId)
106- else false)
107- then if (if ((ex.price >= minPriceXMR))
108- then (maxPriceXMR >= ex.price)
109- else false)
110- then true
111- else throw("alert")
112- else if (if (tradeUSD)
113- then (ex.sellOrder.assetPair.priceAsset == USDId)
114- else false)
115- then if (if ((ex.price >= minPriceUSD))
116- then (maxPriceUSD >= ex.price)
117- else false)
118- then true
119- else throw("alert")
120- else if (if (tradeEUR)
121- then (ex.sellOrder.assetPair.priceAsset == EURId)
122- else false)
123- then if (if ((ex.price >= minPriceEUR))
124- then (maxPriceEUR >= ex.price)
125- else false)
126- then true
127- else throw("alert")
128- else if (tradeTOKENS)
129- then true
130- else throw("Teste03 e negociavel apenas em BTC, ETH, ZEC...")
24+ else throw("Teste03 e negociavel apenas em BTC, ETH, ZEC...")
13125 else if (buy)
13226 then true
13327 else false
13428 case _ =>
13529 true
13630 }

github/deemru/w8io/169f3d6 
44.38 ms