tx · 7qi72X4Qu79mMsXMnoCKQ26G6GuqYyaixFWjLu3WrJjG

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.06 17:29 [1165646] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "7qi72X4Qu79mMsXMnoCKQ26G6GuqYyaixFWjLu3WrJjG", "fee": 100000000, "feeAssetId": null, "timestamp": 1599402594790, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "FcskCnAgBkmdbAk7orEkk7AQZeP9EfNdh1A2MV6n3hqUDDC9JLayw7pYhj1TbnZZibDQuKZpPgdTK3514AquWLd" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAADdGltCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAQAAAAHc3BvbnNvcgEAAAAgQWvFwGKlb5qPANG/gnnueOT9r8/gWjGTXPBMjJWCVpUEAAAACXN0YXJ0VGltZQAAAAAAX05+EAQAAAAKc3RhcnRQcmljZQAAAAAAAAGGoAQAAAAMaW50ZXJ2YWxUaW1lAAAAAAAAA/SABAAAAA1pbnRlcnZhbFByaWNlAAAAAAAAAYagBAAAAAZwZXJpb2QJAABpAAAAAgkAAGUAAAACBQAAAAN0aW0FAAAACXN0YXJ0VGltZQUAAAAMaW50ZXJ2YWxUaW1lBAAAAAlwZXJpb2RFbmQJAABkAAAAAgkAAGgAAAACCQAAZAAAAA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MGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAVhZG1pbgkAAAAAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnNlbmRlcgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAAHYWRtaW5QSwMFAAAABWFkbWluBgMJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAkAAAIAAAABAgAAABNPbmx5IHdhdmVzIGFjY2VwdGVkAwkAAGYAAAACCQAAZQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAKZXhwaXJhdGlvbggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAl0aW1lc3RhbXAJAABlAAAAAgUAAAAJcGVyaW9kRW5kBQAAAAN0aW0JAAACAAAAAQIAAAAq0JLRi9Cx0LXRgNC40YLQtSDQvNC10L3RjNGI0LXQtSDQstGA0LXQvNGPAwMJAABmAAAAAgUAAAAMcHJpY2VTZWxsTWluCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAFcHJpY2UGCQAAZgAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UFAAAADHByaWNlU2VsbE1heAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAALdCU0LjQsNC/0LDQt9C+0L0g0YLQvtGA0LPQvtCy0LvQuCDQvNC10LbQtNGDIAkAAaQAAAABBQAAAAxwcmljZVNlbGxNaW4CAAAAAyAtIAkAAaQAAAABBQAAAAxwcmljZVNlbGxNYXgCAAAACSBXYXZlbGV0cwYHL/bR0A==", "chainId": 84, "height": 1165646, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GL9ocdS1m1W1ra5yhthosobfyv6cddBqCD6mbMEkeb9K Next: VvsghfYomW5YAUEVFkX2V8vT9S2pG4phr8BMRuVw5j8 Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let tim = (lastBlock.timestamp / 1000)
5+let tim = lastBlock.timestamp
66 let sponsor = base58'5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC'
77 let startTime = 1598979600
88 let startPrice = 100000
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5-let tim = (lastBlock.timestamp / 1000)
5+let tim = lastBlock.timestamp
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 priceSellMin = (startPrice + (intervalPrice * period))
1414 let priceSellMax = (priceSellMin + intervalPrice)
1515 match tx {
1616 case tx: BurnTransaction|MassTransferTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1717 (tx.sender == dAppAddress)
1818 case t: TransferTransaction =>
1919 if ((t.feeAssetId != sponsor))
2020 then throw("### To send, use the sponsor token AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ### Для отправки используйте спонсорский токен AYDIK ID - 5QNpGE1TbLFPcKiKcNpnShmJWx9DH2UUtGNWgf8TVDaC ###")
2121 else true
2222 case e: ExchangeTransaction =>
2323 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
2424 if (admin)
2525 then true
2626 else if (isDefined(e.sellOrder.assetPair.priceAsset))
2727 then throw("Only waves accepted")
2828 else if (((e.sellOrder.expiration - e.sellOrder.timestamp) > (periodEnd - tim)))
2929 then throw("Выберите меньшее время")
3030 else if (if ((priceSellMin > e.buyOrder.price))
3131 then true
3232 else (e.sellOrder.price > priceSellMax))
3333 then throw((((("Диапазон торговли между " + toString(priceSellMin)) + " - ") + toString(priceSellMax)) + " Wavelets"))
3434 else true
3535 case _ =>
3636 false
3737 }

github/deemru/w8io/169f3d6 
42.30 ms