tx · AwTizwC8kZJBpKx6HP5Ye1fdrafPsEVeWyD5wF988heo 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA: -1.00000000 Waves 2019.03.23 17:31 [549110] smart asset 3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA > SELF 0.00000000 A008
{ "type": 15, "id": "AwTizwC8kZJBpKx6HP5Ye1fdrafPsEVeWyD5wF988heo", "fee": 100000000, "feeAssetId": null, "timestamp": 1553351515003, "version": 1, "sender": "3N71obtK43EvdxuYsftnexqhdu8YTt1sxfA", "senderPublicKey": "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob", "proofs": [ "284Vt7M2d6fzRfLavmYhV4gAzzxhJjGGscAaFcosjfnzSc2SdGtv35v8czDeJPFwoQRN7MkrMuxf465aQdUe6EWb" ], "assetId": "9aBN3qftSjLLmtreR1mctuzRUwU9sgZPC3MVEHpaREgh", "script": "base64:AgQAAAAGc3lzdGVtAgAAACw3emk0VjQyYzQxN2ZLblcxdWJ2R3Z3M1JSc2FhUWZHQ0Q4dzhSSENGNDNvYgQAAAADYWR2AgAAACxEaDdzdmtSUGVzaXAyRVBVNGdMaWtqQ3JqS1FRNFJxRHA2eXVoNlVhbko4TAQAAAAEdGVjaAIAAAAsNlB3WVl4c2NHMkNkUGdWYW9YR2Zna2dtVGpWdGppZXh3V3RzeFJFdnA2NkYEAAAACnN0YXJ0UHJpY2UAAAAAAAX14QAEAAAACmRlbHRhUHJpY2UAAAAAAAAPQkAEAAAAC3N0YXJ0SGVpZ2h0AAAAAAAACGC3BAAAAAtkZWx0YUhlaWdodAAAAAAAAAAAAwQAAAAJdGltZU9yZGVyAAAAAAAAAAAFBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMDCQAAAAAAAAIJAAJYAAAAAQgFAAAAAWUAAAAPc2VuZGVyUHVibGlj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AAIFAAAABmhlaWdodAUAAAALc3RhcnRIZWlnaHQFAAAAC2RlbHRhSGVpZ2h0BQAAAApkZWx0YVByaWNlAwkAAGcAAAACCAUAAAABZQAAAAVwcmljZQUAAAAMbWluaW11bVByaWNlBAAAAANidXkJAAH0AAAAAwgIBQAAAAFlAAAACGJ1eU9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAPc2VuZGVyUHVibGljS2V5AwUAAAADYnV5AwkAAGcAAAACBQAAAAl0aW1lT3JkZXIJAABlAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAACmV4cGlyYXRpb24ICAUAAAABZQAAAAhidXlPcmRlcgAAAAl0aW1lc3RhbXAGCQAAAgAAAAECAAAACFRJTUUgQlVZAwkAAGcAAAACBQAAAAl0aW1lT3JkZXIJAABlAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAApleHBpcmF0aW9uCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACXRpbWVzdGFtcAYJAAACAAAAAQIAAAAJVElNRSBTRUxMCQAAAgAAAAEJAAEsAAAAAgIAAAAXTWluaW11bSBvcmRlciBwcmljZSBpcyAJAAGkAAAAAQUAAAAMbWluaW11bVByaWNlCQAAAgAAAAECAAAAFlByb2hpYml0ZWQgYnkgY29udHJhY3SX+LUu", "chainId": 84, "height": 549110, "spentComplexity": 0 } View: original | compacted Prev: EFVK4Evj6vY72EE4hKoyohMctC32PSANK4aEc4b9Udme Next: 4YdnLKA3snpR9vnZLojCnTak97gMEztydSjKQZAnavB1 Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | let deltaPrice = 1000000 | |
8 | 8 | let startHeight = 549047 | |
9 | 9 | let deltaHeight = 3 | |
10 | - | let timeOrder = | |
10 | + | let timeOrder = 5 | |
11 | 11 | match tx { | |
12 | 12 | case e: TransferTransaction => | |
13 | 13 | if (if ((toBase58String(e.senderPublicKey) == system)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 2 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let system = "7zi4V42c417fKnW1ubvGvw3RRsaaQfGCD8w8RHCF43ob" | |
4 | 4 | let adv = "Dh7svkRPesip2EPU4gLikjCrjKQQ4RqDp6yuh6UanJ8L" | |
5 | 5 | let tech = "6PwYYxscG2CdPgVaoXGfgkgmTjVtjiexwWtsxREvp66F" | |
6 | 6 | let startPrice = 100000000 | |
7 | 7 | let deltaPrice = 1000000 | |
8 | 8 | let startHeight = 549047 | |
9 | 9 | let deltaHeight = 3 | |
10 | - | let timeOrder = | |
10 | + | let timeOrder = 5 | |
11 | 11 | match tx { | |
12 | 12 | case e: TransferTransaction => | |
13 | 13 | if (if ((toBase58String(e.senderPublicKey) == system)) | |
14 | 14 | then true | |
15 | 15 | else (toBase58String(e.senderPublicKey) == adv)) | |
16 | 16 | then true | |
17 | 17 | else false | |
18 | 18 | case e: ReissueTransaction => | |
19 | 19 | if ((toBase58String(e.senderPublicKey) == system)) | |
20 | 20 | then true | |
21 | 21 | else false | |
22 | 22 | case e: BurnTransaction => | |
23 | 23 | if ((toBase58String(e.senderPublicKey) == system)) | |
24 | 24 | then true | |
25 | 25 | else false | |
26 | 26 | case e: MassTransferTransaction => | |
27 | 27 | if (if ((toBase58String(e.senderPublicKey) == system)) | |
28 | 28 | then true | |
29 | 29 | else (toBase58String(e.senderPublicKey) == adv)) | |
30 | 30 | then true | |
31 | 31 | else false | |
32 | 32 | case e: SetAssetScriptTransaction => | |
33 | 33 | if ((toBase58String(e.senderPublicKey) == system)) | |
34 | 34 | then true | |
35 | 35 | else false | |
36 | 36 | case e: ExchangeTransaction => | |
37 | 37 | let minimumPrice = (startPrice + ((((height - startHeight) / deltaHeight) - ((height - startHeight) % deltaHeight)) * deltaPrice)) | |
38 | 38 | if ((e.price >= minimumPrice)) | |
39 | 39 | then { | |
40 | 40 | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
41 | 41 | if (buy) | |
42 | 42 | then if ((timeOrder >= (e.buyOrder.expiration - e.buyOrder.timestamp))) | |
43 | 43 | then true | |
44 | 44 | else throw("TIME BUY") | |
45 | 45 | else if ((timeOrder >= (e.sellOrder.expiration - e.sellOrder.timestamp))) | |
46 | 46 | then true | |
47 | 47 | else throw("TIME SELL") | |
48 | 48 | } | |
49 | 49 | else throw(("Minimum order price is " + toString(minimumPrice))) | |
50 | 50 | case _ => | |
51 | 51 | throw("Prohibited by contract") | |
52 | 52 | } |
github/deemru/w8io/026f985 33.68 ms ◑