tx · m9edpyA71ZoPBxoJEEGETvJeJ8P6E1ymnphQyfaT4Zh

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.03 20:32 [1161509] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "m9edpyA71ZoPBxoJEEGETvJeJ8P6E1ymnphQyfaT4Zh", "fee": 100000000, "feeAssetId": null, "timestamp": 1599154329388, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "2C6Yv9QsJNLJ5VaSWHgYMz88YcFrUrwVcEbYQ3xYdc9nRXopQPUYRU9FG1ZwXiNPM9MhgqkwafzQ8C2gRDHGydKn" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCQAAaQAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAPoBAAAAAdzcG9uc29yAQAAACBBa8XAYqVvmo8A0b+Cee545P2vz+BaMZNc8EyMlYJWlQQAAAAJc3RhcnRUaW1lAAAAAABfTn4QBAAAAApzdGFydFByaWNlAAAAAAAAAYagBAAAAAxpbnRlcnZhbFRpbWUAAAAAAAAD9IAEAAAADWludGVydmFsUHJpY2UAAAAAAAABhqAEAAAABnBlcmlvZAkAAGkAAAACCQAAZQAAAAIFAAAAA3RpbQUAAAAJc3RhcnRUaW1lBQAAAAxpbnRlcnZhbFRpbWUEAAAACXBlcmlvZEVuZAkAAGQA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wIAYJAAACAAAAAQIAAAAWU29tZXRoaW5nIGJhZCBoYXBwZW5lZAde9efd", "chainId": 84, "height": 1161509, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AYpRy6V23QLvgAo4SA1QPRVBhre2b9EGtX8PtcJq4HGQ Next: 88QvBY8TjbayEZ8huVmP9WZy3VYaXry1eoqdgZo7EYR4 Diff:
OldNewDifferences
2626 then true
2727 else if (isDefined(e.sellOrder.assetPair.priceAsset))
2828 then throw("Торговая пара только с WAVES")
29- else if ((e.buyOrder.orderType == Buy))
30- then if (((priceBuyMin - 1) > e.buyOrder.price))
31- then throw((((("### Диапазон торговли " + toString(priceBuyMin)) + " - ") + toString(priceBuyMax)) + " Wavelets ###"))
32- else true
33- else if ((e.sellOrder.orderType == Sell))
34- then if (((priceSell - 1) > e.sellOrder.price))
35- then throw((("### Минимальная цена продажи " + toString(priceSell)) + " Wavelets ###"))
29+ else if ((e.sellOrder.orderType == Sell))
30+ then if ((priceSell > e.sellOrder.price))
31+ then throw(" 111 ")
32+ else if ((e.sellOrder.price > priceSell))
33+ then throw(" 222 ")
3634 else true
35+ else if ((e.buyOrder.orderType == Buy))
36+ then if ((e.buyOrder.price > priceBuyMin))
37+ then throw(" Минимальная цена ")
38+ else if ((priceBuyMax > e.buyOrder.price))
39+ then throw(" максимальная цена ")
40+ else true
3741 else throw("Something bad happened")
3842 case _ =>
3943 false
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: MassTransferTransaction|BurnTransaction|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 =>
2424 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
2525 if (admin)
2626 then true
2727 else if (isDefined(e.sellOrder.assetPair.priceAsset))
2828 then throw("Торговая пара только с WAVES")
29- else if ((e.buyOrder.orderType == Buy))
30- then if (((priceBuyMin - 1) > e.buyOrder.price))
31- then throw((((("### Диапазон торговли " + toString(priceBuyMin)) + " - ") + toString(priceBuyMax)) + " Wavelets ###"))
32- else true
33- else if ((e.sellOrder.orderType == Sell))
34- then if (((priceSell - 1) > e.sellOrder.price))
35- then throw((("### Минимальная цена продажи " + toString(priceSell)) + " Wavelets ###"))
29+ else if ((e.sellOrder.orderType == Sell))
30+ then if ((priceSell > e.sellOrder.price))
31+ then throw(" 111 ")
32+ else if ((e.sellOrder.price > priceSell))
33+ then throw(" 222 ")
3634 else true
35+ else if ((e.buyOrder.orderType == Buy))
36+ then if ((e.buyOrder.price > priceBuyMin))
37+ then throw(" Минимальная цена ")
38+ else if ((priceBuyMax > e.buyOrder.price))
39+ then throw(" максимальная цена ")
40+ else true
3741 else throw("Something bad happened")
3842 case _ =>
3943 false
4044 }

github/deemru/w8io/026f985 
21.64 ms