tx · CMe2t72qMoktwD1GKzW4VQbH5NACz65NtTGDFp2domrS

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.03 19:57 [1161475] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "CMe2t72qMoktwD1GKzW4VQbH5NACz65NtTGDFp2domrS", "fee": 100000000, "feeAssetId": null, "timestamp": 1599152258101, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "39GzhPNo3QVFzwgDRsk8TpZg3Vg4j2fp4Z3551vspxogyLRqSthZwmxmCfhHi7mEukYvhTpVEUiu5EDgEagRcbKU" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCQAAaQAAAAIIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAAAAAPoBAAAAAdzcG9uc29yAQAAACBBa8XAYqVvmo8A0b+Cee545P2vz+BaMZNc8EyMlYJWlQQAAAAJc3RhcnRUaW1lAAAAAABfTn4QBAAAAApzdGFydFByaWNlAAAAAAAAAYagBAAAAAxpbnRlcnZhbFRpbWUAAAAAAAAD9IAEAAAADWludGVydmFsUHJpY2UAAAAAAAABhqAEAAAABnBlcmlvZAkAAGkAAAACCQAAZQAAAAIFAAAAA3RpbQUAAAAJc3RhcnRUaW1lBQAAAAxpbnRlcnZhbFRpbWUEAAAACXBlcmlvZEVuZAkAAGQAAAACCQAAaAAAAAIJ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AWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAADMjIyMg0JzQuNC90LjQvNCw0LvRjNC90LDRjyDRhtC10L3QsCDQv9GA0L7QtNCw0LbQuCAJAAGkAAAAAQUAAAAJcHJpY2VTZWxsAgAAAA0gV2F2ZWxldHMgIyMjBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkB9xz2NQ=", "chainId": 84, "height": 1161475, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fpppnw1wuD9xjR2XccVEMV5eH9BAJfu2e1owvj3Z3gyW Next: CX5LGaeAKUSnxTgpK5NYxa1sAgA7aea6hP6aN9T9b1eJ Diff:
OldNewDifferences
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let tim = (lastBlock.timestamp / 1000)
66 let sponsor = base58'5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC'
7+let startTime = 1598979600
8+let startPrice = 100000
9+let intervalTime = 259200
10+let intervalPrice = 100000
11+let period = ((tim - startTime) / intervalTime)
12+let periodEnd = (((period + 1) * intervalTime) + startTime)
13+let priceSell = (startPrice + (intervalPrice * period))
14+let priceBuyMin = (priceSell - intervalPrice)
15+let priceBuyMax = (priceSell + intervalPrice)
716 match tx {
817 case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
918 (tx.sender == dAppAddress)
1019 case t: TransferTransaction =>
1120 if ((t.feeAssetId != sponsor))
12- then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###
13-
14-")
21+ then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
1522 else true
1623 case e: ExchangeTransaction =>
1724 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1825 if (admin)
1926 then true
2027 else if (isDefined(e.sellOrder.assetPair.priceAsset))
21- then throw((("###" + toString(tim)) + "###"))
28+ then throw("Торговая пара только с WAVES")
2229 else if ((e.buyOrder.orderType == Buy))
23- then if ((94999999 > e.buyOrder.price))
24- then throw((("###" + toString(tim)) + "###"))
30+ then if (if (((priceBuyMin - 1) > e.buyOrder.price))
31+ then true
32+ else (e.buyOrder.price > (priceBuyMax + 1)))
33+ then throw((((("### Диапазон торговли " + toString(priceBuyMin)) + " - ") + toString(priceBuyMax)) + " Wavelets ###"))
2534 else true
2635 else if ((e.sellOrder.orderType == Sell))
27- then if ((49999999 > e.sellOrder.price))
28- then throw((("###" + toString(tim)) + "###"))
36+ then if (((priceSell - 1) > e.sellOrder.price))
37+ then throw((("### Минимальная цена продажи " + toString(priceSell)) + " Wavelets ###"))
2938 else true
3039 else throw("Something bad happened")
3140 case _ =>
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'
7+let startTime = 1598979600
8+let startPrice = 100000
9+let intervalTime = 259200
10+let intervalPrice = 100000
11+let period = ((tim - startTime) / intervalTime)
12+let periodEnd = (((period + 1) * intervalTime) + startTime)
13+let priceSell = (startPrice + (intervalPrice * period))
14+let priceBuyMin = (priceSell - intervalPrice)
15+let priceBuyMax = (priceSell + intervalPrice)
716 match tx {
817 case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
918 (tx.sender == dAppAddress)
1019 case t: TransferTransaction =>
1120 if ((t.feeAssetId != sponsor))
12- then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###
13-
14-")
21+ then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
1522 else true
1623 case e: ExchangeTransaction =>
1724 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
1825 if (admin)
1926 then true
2027 else if (isDefined(e.sellOrder.assetPair.priceAsset))
21- then throw((("###" + toString(tim)) + "###"))
28+ then throw("Торговая пара только с WAVES")
2229 else if ((e.buyOrder.orderType == Buy))
23- then if ((94999999 > e.buyOrder.price))
24- then throw((("###" + toString(tim)) + "###"))
30+ then if (if (((priceBuyMin - 1) > e.buyOrder.price))
31+ then true
32+ else (e.buyOrder.price > (priceBuyMax + 1)))
33+ then throw((((("### Диапазон торговли " + toString(priceBuyMin)) + " - ") + toString(priceBuyMax)) + " Wavelets ###"))
2534 else true
2635 else if ((e.sellOrder.orderType == Sell))
27- then if ((49999999 > e.sellOrder.price))
28- then throw((("###" + toString(tim)) + "###"))
36+ then if (((priceSell - 1) > e.sellOrder.price))
37+ then throw((("### Минимальная цена продажи " + toString(priceSell)) + " Wavelets ###"))
2938 else true
3039 else throw("Something bad happened")
3140 case _ =>
3241 false
3342 }

github/deemru/w8io/169f3d6 
23.84 ms