tx · BnvCDH2eu98my9xsbFahFutdQUA4aovdyE3AQieFBGvy

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.03 10:45 [1160931] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "BnvCDH2eu98my9xsbFahFutdQUA4aovdyE3AQieFBGvy", "fee": 100000000, "feeAssetId": null, "timestamp": 1599119071348, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "35LjGZcWRFN1PJwEyoAoJpnZw9wD2UHDeuTkZYwEzFmDpWKFRuPR1jZ7eDrvNARXH5L6Y3fSwh63FehVnQgaWuC4" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AQQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFQURLQVIBAAAAIE8ED1OjBotmc2EumypX9reWUxUnC7qOBzHc91n2a5N9BAAAAAVVU05PTgEAAAAgS7jxileDH2cnIxJKjPiSmCmRi7xOEpKIIhAFvKIMH0EEAAAABVVTVE9UAQAAACD5fAIge0PTOAntvRu6JMLnaCFscUNHuCCuZr0RidHEewQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb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2J1eQkAAfQAAAADCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAABWFkbWluCQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAAdhZG1pblBLAwUAAAAFYWRtaW4GAwkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0CQAAAgAAAAECAAAACFdBVkVTZ2hoAwUAAAAEc2VsbAMJAABmAAAAAgAAAAAABamVvwgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAAAVnZ2dnZwYDBQAAAANidXkDCQAAZgAAAAIAAAAAAAL68H8ICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAFcHJpY2UJAAACAAAAAQIAAAAJV0FWRVNmZmdnBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkBximiY8=", "chainId": 84, "height": 1160931, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ADbV13Lccsrz5zndvZpUEEi9d2sjGmk2wGJ8T7BtAuy2 Next: De6EZtKxuXWVCYGRaFHuHV1gehVJ6BXPx6LJihchLPvb Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
55 let ADKAR = base58'6KSoKoXkT1HQP9sd3Z17bjzHX83C3EhAUpfdUpvzgKDv'
66 let USNON = base58'66b9Fkc7VXSHhqngV3Pc4YQTQs38eZkstvFaYjLmZTTN'
77 let USTOT = base58'HntC3EW8FA17D4doh8kJng7uS8gQFDzKFdA22cgo5GAv'
88 match tx {
99 case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
1010 (tx.sender == dAppAddress)
1111 case tx: TransferTransaction|MassTransferTransaction =>
1212 true
1313 case e: ExchangeTransaction =>
1414 if (if ((e.sellOrder.assetPair.priceAsset == ADKAR))
1515 then true
1616 else (e.sellOrder.assetPair.amountAsset == ADKAR))
1717 then true
1818 else if (if ((e.sellOrder.assetPair.priceAsset == USNON))
1919 then true
2020 else (e.sellOrder.assetPair.amountAsset == USNON))
2121 then true
2222 else if (if ((e.sellOrder.assetPair.priceAsset == USTOT))
2323 then true
2424 else (e.sellOrder.assetPair.amountAsset == USTOT))
2525 then true
2626 else {
2727 let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
2828 let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
2929 let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
3030 if (admin)
3131 then true
3232 else if (isDefined(e.sellOrder.assetPair.priceAsset))
3333 then throw("WAVESghh")
3434 else if (sell)
3535 then if ((94999999 > e.sellOrder.price))
3636 then throw("ggggg")
3737 else true
3838 else if (buy)
3939 then if ((49999999 > e.sellOrder.price))
4040 then throw("WAVESffgg")
4141 else true
4242 else throw("Something bad happened")
4343 }
4444 case _ =>
4545 false
4646 }

github/deemru/w8io/169f3d6 
25.78 ms