tx · FRZd1iBe7zCGWtbTjKLLakyQn2MscZZFcabNFMSFWzrQ

3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar:  -1.00000000 Waves

2020.09.03 10:35 [1160920] smart asset 3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar > SELF 0.00000000 Test200

{ "type": 15, "id": "FRZd1iBe7zCGWtbTjKLLakyQn2MscZZFcabNFMSFWzrQ", "fee": 100000000, "feeAssetId": null, "timestamp": 1599118540835, "version": 1, "sender": "3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar", "senderPublicKey": "BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS", "proofs": [ "p4rXr1QS8ZWX187CEwKQNMS3zfRvK2t3dCUzCUuxXLoeLhJ2Mq7Edn4fp1dwsbTb34PXg8YrW1hapdZaNTbbZvU" ], "assetId": "ELifKEtwTDt6TVLYYWJKNoCKuNJxzFTDcR5YC8YBWh2e", "script": "base64:AwQAAAALZEFwcEFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNeWdRYXdHMmdQam9lajh3WDJjcWt4bWc3S1hBUFA2eGFyBAAAAAdhZG1pblBLAQAAACCbvoDDAKlv8SHnGnzbjcmS7cF3EYTHum5V5rS3JwBICQQAAAAFQURLQVIBAAAAIE8ED1OjBotmc2EumypX9reWUxUnC7qOBzHc91n2a5N9BAAAAAVVU05PTgEAAAAgS7jxileDH2cnIxJKjPiSmCmRi7xOEpKIIhAFvKIMH0EEAAAABVVTVE9UAQAAACD5fAIge0PTOAntvRu6JMLnaCFscUNHuCCuZr0RidHEewQAAAADdGltCAUAAAAJbGFzdEJsb2NrAAAACXRpbWVzdGFtcAQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24GAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgk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AAAFlAAAACXNlbGxPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAA2J1eQkAAfQAAAADCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAABZQAAAAhidXlPcmRlcgAAAA9zZW5kZXJQdWJsaWNLZXkEAAAABWFkbWluCQAAAAAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABBQAAAAdhZG1pblBLAwUAAAAFYWRtaW4GAwkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWFzc2V0UGFpcgAAAApwcmljZUFzc2V0CQAAAgAAAAECAAAABVdBVkVTAwUAAAAEc2VsbAMJAABmAAAAAgAAAAAABamVvwgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQkAAAIAAAABAgAAAANnZ2cGAwUAAAADYnV5AwkAAGYAAAACAAAAAAAC+vB/CAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABXByaWNlCQAAAgAAAAECAAAAnlRoZSBtaW5pbXVtIHB1cmNoYXNlIHByaWNlIGlzIDAuNTAwMDAwMDAgV2F2ZXMuIFRyYWRpbmcgcGFpcnMgQURPUkUvV0FWRVMsIEFET1JFL0FES0FSLCBBRE9SRS9VU05PTiwgQURPUkUvVVNUT1QuIERldGFpbHMgaW4gdGhlIHRlbGVncmFtIGNoYW5uZWwgQEFES0FSX1dBVkVTBgkAAAIAAAABAgAAABZTb21ldGhpbmcgYmFkIGhhcHBlbmVkBxJKQVs=", "chainId": 84, "height": 1160920, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FdASEDHTctWGTbG5623dC6BWPHcodAUAWvqxTzyB7K1K Next: 8BMsSH3UEbcJJv8h5sXF6J5P4cCUaqBMyNYjmW8s8qDn Diff:
OldNewDifferences
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5+let ADKAR = base58'6KSoKoXkT1HQP9sd3Z17bjzHX83C3EhAUpfdUpvzgKDv'
6+let USNON = base58'66b9Fkc7VXSHhqngV3Pc4YQTQs38eZkstvFaYjLmZTTN'
7+let USTOT = base58'HntC3EW8FA17D4doh8kJng7uS8gQFDzKFdA22cgo5GAv'
58 let tim = lastBlock.timestamp
69 match tx {
7- case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
10+ case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
811 (tx.sender == dAppAddress)
9- case tx: TransferTransaction =>
12+ case tx: TransferTransaction|MassTransferTransaction =>
1013 true
1114 case e: ExchangeTransaction =>
12- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
13- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
14- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
15- if (admin)
15+ if (if ((e.sellOrder.assetPair.priceAsset == ADKAR))
1616 then true
17- else if (isDefined(e.sellOrder.assetPair.priceAsset))
18- then throw("Only waves accepted")
19- else if (sell)
20- then if ((100 > e.sellOrder.amount))
21- then throw((("Время " + toString(tim)) + " CloMinTok =-"))
22- else if ((100 >= e.sellOrder.price))
23- then throw((("-= Цена продажи должна быть больше " + toString(tim)) + " Wavelets =-"))
24- else true
25- else if (buy)
26- then true
27- else throw("something bad happened")
17+ else (e.sellOrder.assetPair.amountAsset == ADKAR))
18+ then true
19+ else if (if ((e.sellOrder.assetPair.priceAsset == USNON))
20+ then true
21+ else (e.sellOrder.assetPair.amountAsset == USNON))
22+ then true
23+ else if (if ((e.sellOrder.assetPair.priceAsset == USTOT))
24+ then true
25+ else (e.sellOrder.assetPair.amountAsset == USTOT))
26+ then true
27+ else {
28+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
29+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
30+ let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
31+ if (admin)
32+ then true
33+ else if (isDefined(e.sellOrder.assetPair.priceAsset))
34+ then throw("WAVES")
35+ else if (sell)
36+ then if ((94999999 > e.sellOrder.price))
37+ then throw("ggg")
38+ else true
39+ else if (buy)
40+ then if ((49999999 > e.sellOrder.price))
41+ then throw("The minimum purchase price is 0.50000000 Waves. Trading pairs ADORE/WAVES, ADORE/ADKAR, ADORE/USNON, ADORE/USTOT. Details in the telegram channel @ADKAR_WAVES")
42+ else true
43+ else throw("Something bad happened")
44+ }
2845 case _ =>
2946 false
3047 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let dAppAddress = addressFromString("3MygQawG2gPjoej8wX2cqkxmg7KXAPP6xar")
44 let adminPK = base58'BUxg9XtvamV81CZCqrQzi8BxCizU41dpSqoqt5mW56XS'
5+let ADKAR = base58'6KSoKoXkT1HQP9sd3Z17bjzHX83C3EhAUpfdUpvzgKDv'
6+let USNON = base58'66b9Fkc7VXSHhqngV3Pc4YQTQs38eZkstvFaYjLmZTTN'
7+let USTOT = base58'HntC3EW8FA17D4doh8kJng7uS8gQFDzKFdA22cgo5GAv'
58 let tim = lastBlock.timestamp
69 match tx {
7- case tx: MassTransferTransaction|BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
10+ case tx: BurnTransaction|SetAssetScriptTransaction|ReissueTransaction =>
811 (tx.sender == dAppAddress)
9- case tx: TransferTransaction =>
12+ case tx: TransferTransaction|MassTransferTransaction =>
1013 true
1114 case e: ExchangeTransaction =>
12- let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
13- let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
14- let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
15- if (admin)
15+ if (if ((e.sellOrder.assetPair.priceAsset == ADKAR))
1616 then true
17- else if (isDefined(e.sellOrder.assetPair.priceAsset))
18- then throw("Only waves accepted")
19- else if (sell)
20- then if ((100 > e.sellOrder.amount))
21- then throw((("Время " + toString(tim)) + " CloMinTok =-"))
22- else if ((100 >= e.sellOrder.price))
23- then throw((("-= Цена продажи должна быть больше " + toString(tim)) + " Wavelets =-"))
24- else true
25- else if (buy)
26- then true
27- else throw("something bad happened")
17+ else (e.sellOrder.assetPair.amountAsset == ADKAR))
18+ then true
19+ else if (if ((e.sellOrder.assetPair.priceAsset == USNON))
20+ then true
21+ else (e.sellOrder.assetPair.amountAsset == USNON))
22+ then true
23+ else if (if ((e.sellOrder.assetPair.priceAsset == USTOT))
24+ then true
25+ else (e.sellOrder.assetPair.amountAsset == USTOT))
26+ then true
27+ else {
28+ let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)
29+ let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey)
30+ let admin = (e.sellOrder.sender == addressFromPublicKey(adminPK))
31+ if (admin)
32+ then true
33+ else if (isDefined(e.sellOrder.assetPair.priceAsset))
34+ then throw("WAVES")
35+ else if (sell)
36+ then if ((94999999 > e.sellOrder.price))
37+ then throw("ggg")
38+ else true
39+ else if (buy)
40+ then if ((49999999 > e.sellOrder.price))
41+ then throw("The minimum purchase price is 0.50000000 Waves. Trading pairs ADORE/WAVES, ADORE/ADKAR, ADORE/USNON, ADORE/USTOT. Details in the telegram channel @ADKAR_WAVES")
42+ else true
43+ else throw("Something bad happened")
44+ }
2845 case _ =>
2946 false
3047 }

github/deemru/w8io/169f3d6 
34.39 ms