tx · 6ysQkuGLkB4h7RuQxX1evVpPh3rzCVXfz3hjnbxmxWWS

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.06 15:55 [1165564] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "6ysQkuGLkB4h7RuQxX1evVpPh3rzCVXfz3hjnbxmxWWS", "fee": 100000000, "feeAssetId": null, "timestamp": 1599396906138, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "66WmnxQEBjRdUKVvDTMMQNH12ftzETxwSxwywGcT7JMwNfYdY5jBA6pT1EgqhHkfoVw2sYhUwbzVpWAHf3v5vCQR" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCQAAaQAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAPoBAAAAAdzcG9uc29yAQAAACBBa8XAYqVvmo8A0b+Cee545P2vz+BaMZNc8EyMlYJWlQQAAAAJc3RhcnRUaW1lAAAAAABfTn4QBAAAAApzdGFydFByaWNlAAAAAAAAAYagBAAAAAxpbnRlcnZhbFRpbWUAAAAAAAAD9IAEAAAADWludGVydmFsUHJpY2UAAAAAAAABhqAEAAAABnBlcmlvZAkAAGkAAAACCQAAZQAAAAIFAAAAA3RpbQUAAAAJc3RhcnRUaW1lBQAAAAxpbnRlcnZhbFRpbWUEAAAACXBlcmlvZEVuZAkAAGQAAA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NC5INGC0L7QutC10L0gQVlESUsgSUQgLSA1UU5wR0UxVGJMRlBjS2lLY05wblNobUpXeDlESDJVVXRHTldnZjhUVkRhQyAjIyMGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAVhZG1pbgkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAHYWRtaW5QSwMFAAAABWFkbWluBgMJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAkAAAIAAAABAgAAABNPbmx5IHdhdmVzIGFjY2VwdGVkAwkAAAAAAAACAAAAAAAAAAABAAAAAAAAAAACCQAAAgAAAAECAAAABWZmZmZmAwMJAABnAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABXByaWNlAAAAAAAExLQACQAAZwAAAAIAAAAAAAcnDgAICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UHCQAAAgAAAAECAAAATtCe0LHRitC10Lwg0L/RgNC+0LTQsNC20Lgg0LTQvtC70LbQtdC9INCx0YvRgtGMINCx0L7Qu9GM0YjQtSDQuNC70Lgg0YDQsNCy0L3QvgYHt6LyKw==", "chainId": 84, "height": 1165564, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4ihebJ5NAHXQocoYuVNy9hA4FcnWZPHzKjpLnw1a3pyE Next: 78zzrr7oeg9EzJfN28gp1GQZvVAy4mzpVN3XbqepJ9Zs Diff:
OldNewDifferences
2121 then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
2222 else true
2323 case e: ExchangeTransaction =>
24- let sender = e.sellOrder.sender
25- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
26- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2724 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
2825 if (admin)
2926 then true
3027 else if (isDefined(e.sellOrder.assetPair.priceAsset))
3128 then throw("Only waves accepted")
32- else if (sell)
33- then if ((10 > e.sellOrder.amount))
29+ else if ((1 == 2))
30+ then throw("fffff")
31+ else if (if ((e.buyOrder.price >= 80000000))
32+ then (120000000 >= e.sellOrder.price)
33+ else false)
3434 then throw("Объем продажи должен быть больше или равно")
35- else if ((priceSell > e.sellOrder.price))
36- then throw("Цена продажи должна быть больше")
37- else true
38- else if (buy)
39- then if (if ((priceBuyMin > e.sellOrder.price))
40- then true
41- else (e.sellOrder.price > priceBuyMax))
42- then throw((((("Цена покупки должна быть в пределах диапазона " + toString(priceBuyMin)) + " - ") + toString(priceBuyMax)) + " Wavelets"))
43- else true
44- else throw("something bad happened")
35+ else true
4536 case _ =>
4637 false
4738 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let tim = (lastBlock.timestamp / 1000)
66 let sponsor = base58'5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC'
77 let startTime = 1598979600
88 let startPrice = 100000
99 let intervalTime = 259200
1010 let intervalPrice = 100000
1111 let period = ((tim - startTime) / intervalTime)
1212 let periodEnd = (((period + 1) * intervalTime) + startTime)
1313 let priceSell = (startPrice + (intervalPrice * period))
1414 let priceBuyMin = (priceSell - intervalPrice)
1515 let priceBuyMax = (priceSell + intervalPrice)
1616 match tx {
1717 case tx: BurnTransaction|MassTransferTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1818 (tx.sender == dAppAddress)
1919 case t: TransferTransaction =>
2020 if ((t.feeAssetId != sponsor))
2121 then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
2222 else true
2323 case e: ExchangeTransaction =>
24- let sender = e.sellOrder.sender
25- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
26- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2724 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
2825 if (admin)
2926 then true
3027 else if (isDefined(e.sellOrder.assetPair.priceAsset))
3128 then throw("Only waves accepted")
32- else if (sell)
33- then if ((10 > e.sellOrder.amount))
29+ else if ((1 == 2))
30+ then throw("fffff")
31+ else if (if ((e.buyOrder.price >= 80000000))
32+ then (120000000 >= e.sellOrder.price)
33+ else false)
3434 then throw("Объем продажи должен быть больше или равно")
35- else if ((priceSell > e.sellOrder.price))
36- then throw("Цена продажи должна быть больше")
37- else true
38- else if (buy)
39- then if (if ((priceBuyMin > e.sellOrder.price))
40- then true
41- else (e.sellOrder.price > priceBuyMax))
42- then throw((((("Цена покупки должна быть в пределах диапазона " + toString(priceBuyMin)) + " - ") + toString(priceBuyMax)) + " Wavelets"))
43- else true
44- else throw("something bad happened")
35+ else true
4536 case _ =>
4637 false
4738 }

github/deemru/w8io/169f3d6 
51.80 ms