tx · 85uTMkjEYaUxYCrcbwLenaWbwMdY96hmjm5TuGt6vmjE

3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C:  -0.01400000 Waves

2021.05.25 18:15 [1541346] smart account 3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C > SELF 0.00000000 Waves

{ "type": 13, "id": "85uTMkjEYaUxYCrcbwLenaWbwMdY96hmjm5TuGt6vmjE", "fee": 1400000, "feeAssetId": null, "timestamp": 1621955770696, "version": 2, "chainId": 84, "sender": "3MzXqo2rBxc3XEKPVcYHDrsgP7jmE6cGg6C", "senderPublicKey": "DAXE7bVatBuMqt8Me8npUpPhn2XaV13QkCDZCQGV3yDf", "proofs": [ "4RuDi2yW4snPdQbU9PKbfnBSewvM2WHujEQDQ6Z3FH3vtTv8uH8SmQg55YRn98icQNxf8tVSNZp5bhHTcmtH1Q2x" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAGbWlkaUlkAQAAACAGLtZERQwp0mc9GkII6TL8MrO9FCVbUZ4Q1IdRUGKaigAAAAAFZGF0dW0IBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAZhbU1pZGkAAAAAAAAAAAABAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAckbWF0Y2gwCAUAAAABcAAAAAdhc3NldElkCQAAZwAAAAIAAAAbSOtX4AAIBQAAAAFwAAAABmFtb3VudAAAAAEAAAABaQEAAAAHYnV5bWlkaQAAAAEAAAAJdGhlU3RyaW5nBAAAAARjb2VmAwkAAGYAAAACAAAAAXm6kfwABQAAAAVkYXR1bQAAAAAAAADqYAMJAABmAAAAAgAAAAF5ygUQAAUAAAAFZ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TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAIZWxBbW91bnQFAAAABm1pZGlJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlva0FkZHJlc3MFAAAACXJlZkFtb3VudAUAAAAGbWlkaUlkBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQAAAAA6ny+Cw==", "height": 1541346, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4NPw7Hbf3WD57DoaXJkq5kMw3mhBMtMmUAyj75yQZokk Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+let a = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
5+
6+let b = lastBlock.timestamp
7+
8+let c = 0
9+
10+func d (e) = if ((size(e.payments) == 0))
11+ then throw("Payment not attached")
12+ else {
13+ let f = e.payments[0]
14+ let g = f.assetId
15+ (30000000000000 >= f.amount)
16+ }
417
518
6-@Callable(a)
7-func mintme (b,c) = {
8- let d = {
9- let e = getInteger(this, "counter")
10- if ($isInstanceOf(e, "Int"))
11- then {
12- let f = e
13- (f + 1)
14- }
15- else 0
16- }
17- let g = toString(d)
18- let h = "MIDI-NFT #"
19- let i = (h + g)
20- let j = Issue(i, (("{ url : " + b) + "}"), 1, 0, false)
21- let k = calculateAssetId(j)
22-[j, ScriptTransfer(a.caller, j.quantity, k), IntegerEntry("counter", d)]
19+@Callable(e)
20+func buymidi (h) = {
21+ let i = if ((1622332800000 > b))
22+ then 60000
23+ else if ((1622592000000 > b))
24+ then 24000
25+ else if ((1622851200000 > b))
26+ then 21000
27+ else if ((1623110400000 > b))
28+ then 18000
29+ else if ((1623369600000 > b))
30+ then 15000
31+ else if ((1623628800000 > b))
32+ then 12000
33+ else if ((1623888000000 > b))
34+ then 9000
35+ else if ((1624147200000 > b))
36+ then 6000
37+ else if ((1624406400000 > b))
38+ then 3000
39+ else throw("Sorry ICO ended")
40+ if (d(e))
41+ then {
42+ let j = e.payments[0]
43+ let k = j.amount
44+ let l = ((k / 100000000) * (i * 10000))
45+ let m = addressFromStringValue(h)
46+ let n = toString(e.caller)
47+ let o = if ((h == "any"))
48+ then 0
49+ else if ((h == n))
50+ then 0
51+ else (l / 10)
52+ if ((h == "any"))
53+ then [ScriptTransfer(e.caller, l, a)]
54+ else [ScriptTransfer(e.caller, l, a), ScriptTransfer(m, o, a)]
55+ }
56+ else throw("Wrong payment amount or asset")
2357 }
2458
25-
26-@Verifier(l)
27-func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
2859

github/deemru/w8io/026f985 
28.16 ms