tx · GicYCky62vVn2d5DVWPsS7Vpv9RY5kWDWFBXojgcbKYW

3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH:  -0.01400000 Waves

2021.05.25 18:18 [1541348] smart account 3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH > SELF 0.00000000 Waves

{ "type": 13, "id": "GicYCky62vVn2d5DVWPsS7Vpv9RY5kWDWFBXojgcbKYW", "fee": 1400000, "feeAssetId": null, "timestamp": 1621955943387, "version": 2, "chainId": 84, "sender": "3MpRDrT92zK6yWJh47UdA8mRDH7f2F3CSzH", "senderPublicKey": "6it1s6XyHkFTbzgCJPXSeHjyLYixDHy6hJgzzfbntDGB", "proofs": [ "5kWYfsejELvZMVYgahijjk3TLAU84SLyf5fPqyaNPs5MMXYpzYWsTH48CXKGscbpzuLboKwpNu5NAyaoXUsW8wxP" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAGbWlkaUlkAQAAACAGLtZERQwp0mc9GkII6TL8MrO9FCVbUZ4Q1IdRUGKaigAAAAAFZGF0dW0IBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAAAAAAZhbU1pZGkAAAAAAAAAAAABAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpAwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFFBheW1lbnQgbm90IGF0dGFjaGVkBAAAAAFwCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAAckbWF0Y2gwCAUAAAABcAAAAAdhc3NldElkCQAAZwAAAAIAAAAbSOtX4AAIBQAAAAFwAAAABmFtb3VudAAAAAEAAAABaQEAAAAHYnV5bWlkaQAAAAEAAAAJdGhlU3RyaW5nBAAAAARjb2VmAwkAAGYAAAACAAAAAXm6kfwABQAAAAVkYXR1bQAAAAAAAADqYAMJAABmAAAAAgAAAAF5ygUQAAUAAAAFZGF0dW0AAAAAA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uc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAIZWxBbW91bnQFAAAABm1pZGlJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlva0FkZHJlc3MFAAAACXJlZkFtb3VudAUAAAAGbWlkaUlkBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQAAAAA6ny+Cw==", "height": 1541348, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J31SvotDRjyYKZbrwRogRAJzoTGm35uh7eSR3r2R8NNo Next: HJMobteXoavaiDrKa51SKzLWsQsvEPWRC4FFnf7jKEkB Diff:
OldNewDifferences
1818
1919 @Callable(e)
2020 func buymidi (h) = {
21- let i = if ((1621814400000 > b))
21+ let i = if ((1622332800000 > b))
2222 then 60000
23- else if ((1622073600000 > b))
24- then 30000
25- else if ((1622332800000 > b))
26- then 27000
27- else if ((1622592000000 > b))
28- then 24000
29- else if ((1622851200000 > b))
30- then 21000
31- else if ((1623110400000 > b))
32- then 18000
33- else if ((1623369600000 > b))
34- then 15000
35- else if ((1623628800000 > b))
36- then 12000
37- else if ((1624147200000 > b))
38- then 9000
39- else if ((1624406400000 > b))
40- then 6000
41- else throw("Sorry ICO ended")
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")
4240 if (d(e))
4341 then {
4442 let j = e.payments[0]
4543 let k = j.amount
4644 let l = ((k / 100000000) * (i * 10000))
47-[ScriptTransfer(e.caller, l, a)]
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)]
4855 }
4956 else throw("Wrong payment amount or asset")
5057 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'R8sQUmwwAENBL6B5ejGztDh3RzJ3MbKRqK7GtspFxKT'
55
66 let b = lastBlock.timestamp
77
88 let c = 0
99
1010 func d (e) = if ((size(e.payments) == 0))
1111 then throw("Payment not attached")
1212 else {
1313 let f = e.payments[0]
1414 let g = f.assetId
1515 (30000000000000 >= f.amount)
1616 }
1717
1818
1919 @Callable(e)
2020 func buymidi (h) = {
21- let i = if ((1621814400000 > b))
21+ let i = if ((1622332800000 > b))
2222 then 60000
23- else if ((1622073600000 > b))
24- then 30000
25- else if ((1622332800000 > b))
26- then 27000
27- else if ((1622592000000 > b))
28- then 24000
29- else if ((1622851200000 > b))
30- then 21000
31- else if ((1623110400000 > b))
32- then 18000
33- else if ((1623369600000 > b))
34- then 15000
35- else if ((1623628800000 > b))
36- then 12000
37- else if ((1624147200000 > b))
38- then 9000
39- else if ((1624406400000 > b))
40- then 6000
41- else throw("Sorry ICO ended")
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")
4240 if (d(e))
4341 then {
4442 let j = e.payments[0]
4543 let k = j.amount
4644 let l = ((k / 100000000) * (i * 10000))
47-[ScriptTransfer(e.caller, l, a)]
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)]
4855 }
4956 else throw("Wrong payment amount or asset")
5057 }
5158
5259

github/deemru/w8io/026f985 
36.44 ms