tx · Hv7YiNefmYKXVf3Pkej8b1qNvPMkzrabYSaq21yRV8oo

3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez:  -0.00600000 Waves

2023.10.30 15:33 [2821380] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves

{ "type": 13, "id": "Hv7YiNefmYKXVf3Pkej8b1qNvPMkzrabYSaq21yRV8oo", "fee": 600000, "feeAssetId": null, "timestamp": 1698669208902, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "2zwXscn4d2cu1wfRE8zdqeJ5VuDgjDVxAPzBvxVfK2Ro1XmDjFqSZyXcaE8p12b8vVs5c2bTLHhco4b2cwN3S31M" ], "script": "base64:AAIFAAAAAAAAAA8IAhIECgIIARIDCgEIEgAAAAAIAAAAAAJsaQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMwkABEwAAAACAgAAAAE0CQAETAAAAAICAAAAATUJAARMAAAAAgIAAAABNgUAAAADbmlsAAAAAAVob3VycwAAAAAAAAAAAQAAAAAHbWludXRlcwAAAAAAAAAACgEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAA5nZXRBc3NldFN0cmluZwAAAAEAAAAHYXNzZXRJ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ABkAAAAAAAAAABoAAAAAAAAAABsAAAAAAAAAABwAAAAAAAAAAB0AAAAAAAAAAB4AAAAAAAAAAB8AAAAAAAAAACAAAAAAAAAAACEAAAAAAAAAACIAAAAAAAAAACMAAAAAAAAAACQAAAAAAAAAACUAAAAAAAAAACYAAAAAAAAAACcAAAAAAAAAACgAAAAAAAAAACkAAAAAAAAAACoAAAAAAAAAACsAAAAAAAAAACwAAAAAAAAAAC0AAAAAAAAAAC4AAAAAAAAAAC8AAAAAAAAAADAAAAAAAAAAADEAAAAAAAAAADIAAAAAAAAAADMAAAAAAAAAADQAAAAAAAAAADUAAAAAAAAAADYAAAAAAAAAADcAAAAAAAAAADgAAAAAAAAAADkAAAAAAAAAADoAAAAAAAAAADsAAAAAAAAAADwDCQAAAAAAAAIFAAAACHBheW1lbnRzBQAAAAhwYXltZW50cwUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAACYp4gK", "height": 2821380, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4XpiPHdyVqzwJhTAKqAUk2u4FJ6wVDi2E3EMdLJRRvi4 Next: AHNrdL7KFa7VSGegZLnBzkCJpRcyC6ft5GRixyq3bRHu Diff:
OldNewDifferences
6161
6262
6363 @Callable(s)
64-func addBoosting (t,u) = if (if (if ((s.caller != this))
65- then (s.caller != Address(base58'3PEtLVxDT8mxAh1SDAn8m7JTGNkdpkaFxBk'))
66- else false)
67- then (s.caller != Address(base58'3P8qVX189qpoTJZQQQdKS9endHK5sxWsvrd'))
68- else false)
69- then throw("under maintenance until further notice")
70- else {
71- let v = s.payments[0].amount
72- let j = i(s.payments[0].assetId)
73- let w = (d("global_boostingsAmount") + 1)
74- let n = toString(w)
75- if ((addressFromString(t) == unit))
76- then throw("incorrect pool address")
77- else [IntegerEntry("global_boostingsAmount", w), IntegerEntry((("boosting_" + n) + "_days"), u), IntegerEntry((("boosting_" + n) + "_totalAmount"), v), IntegerEntry((("boosting_" + n) + "_dailyAmount"), (v / u)), IntegerEntry((("boosting_" + n) + "_blockAmount"), (v / ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_startHeight"), height), IntegerEntry((("boosting_" + n) + "_finishHeight"), (height + ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_finishTimestamp"), (lastBlock.timestamp + ((((u * b) * c) * 60) * 1000))), IntegerEntry((("boosting_" + n) + "_lastHeight"), height), StringEntry((("boosting_" + n) + "_assetId"), j), StringEntry((("boosting_" + n) + "_owner"), toString(s.caller)), StringEntry((("boosting_" + n) + "_poolId"), t), StringEntry((("pool_" + t) + "_boostings"), ((h((("pool_" + t) + "_boostings")) + n) + ","))]
78- }
64+func addBoosting (t,u) = {
65+ let v = s.payments[0].amount
66+ let j = i(s.payments[0].assetId)
67+ let w = (d("global_boostingsAmount") + 1)
68+ let n = toString(w)
69+ if ((addressFromString(t) == unit))
70+ then throw("incorrect pool address")
71+ else [IntegerEntry("global_boostingsAmount", w), IntegerEntry((("boosting_" + n) + "_days"), u), IntegerEntry((("boosting_" + n) + "_totalAmount"), v), IntegerEntry((("boosting_" + n) + "_dailyAmount"), (v / u)), IntegerEntry((("boosting_" + n) + "_blockAmount"), (v / ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_startHeight"), height), IntegerEntry((("boosting_" + n) + "_finishHeight"), (height + ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_finishTimestamp"), (lastBlock.timestamp + ((((u * b) * c) * 60) * 1000))), IntegerEntry((("boosting_" + n) + "_lastHeight"), height), StringEntry((("boosting_" + n) + "_assetId"), j), StringEntry((("boosting_" + n) + "_owner"), toString(s.caller)), StringEntry((("boosting_" + n) + "_poolId"), t), StringEntry((("pool_" + t) + "_boostings"), ((h((("pool_" + t) + "_boostings")) + n) + ","))]
72+ }
7973
8074
8175
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ["1", "2", "3", "4", "5", "6"]
55
66 let b = 1
77
88 let c = 10
99
1010 func d (e) = {
1111 let f = getInteger(this, e)
1212 if ($isInstanceOf(f, "Int"))
1313 then {
1414 let g = f
1515 g
1616 }
1717 else 0
1818 }
1919
2020
2121 func h (e) = {
2222 let f = getString(this, e)
2323 if ($isInstanceOf(f, "String"))
2424 then {
2525 let g = f
2626 g
2727 }
2828 else ""
2929 }
3030
3131
3232 func i (j) = {
3333 let f = j
3434 if ($isInstanceOf(f, "ByteVector"))
3535 then {
3636 let g = f
3737 toBase58String(g)
3838 }
3939 else "WAVES"
4040 }
4141
4242
4343 func k (l) = if ((l == "WAVES"))
4444 then unit
4545 else fromBase58String(l)
4646
4747
4848 func m (n) = {
4949 let o = d((("boosting_" + n) + "_lastHeight"))
5050 let p = d((("boosting_" + n) + "_finishHeight"))
5151 if (if ((o != 0))
5252 then (p > o)
5353 else false)
5454 then {
5555 let q = d((("boosting_" + n) + "_blockAmount"))
5656 let r = ((min([p, height]) - o) * q)
5757 [IntegerEntry((("boosting_" + n) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(h((("boosting_" + n) + "_poolId"))), r, k(h((("boosting_" + n) + "_assetId"))))]
5858 }
5959 else nil
6060 }
6161
6262
6363 @Callable(s)
64-func addBoosting (t,u) = if (if (if ((s.caller != this))
65- then (s.caller != Address(base58'3PEtLVxDT8mxAh1SDAn8m7JTGNkdpkaFxBk'))
66- else false)
67- then (s.caller != Address(base58'3P8qVX189qpoTJZQQQdKS9endHK5sxWsvrd'))
68- else false)
69- then throw("under maintenance until further notice")
70- else {
71- let v = s.payments[0].amount
72- let j = i(s.payments[0].assetId)
73- let w = (d("global_boostingsAmount") + 1)
74- let n = toString(w)
75- if ((addressFromString(t) == unit))
76- then throw("incorrect pool address")
77- else [IntegerEntry("global_boostingsAmount", w), IntegerEntry((("boosting_" + n) + "_days"), u), IntegerEntry((("boosting_" + n) + "_totalAmount"), v), IntegerEntry((("boosting_" + n) + "_dailyAmount"), (v / u)), IntegerEntry((("boosting_" + n) + "_blockAmount"), (v / ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_startHeight"), height), IntegerEntry((("boosting_" + n) + "_finishHeight"), (height + ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_finishTimestamp"), (lastBlock.timestamp + ((((u * b) * c) * 60) * 1000))), IntegerEntry((("boosting_" + n) + "_lastHeight"), height), StringEntry((("boosting_" + n) + "_assetId"), j), StringEntry((("boosting_" + n) + "_owner"), toString(s.caller)), StringEntry((("boosting_" + n) + "_poolId"), t), StringEntry((("pool_" + t) + "_boostings"), ((h((("pool_" + t) + "_boostings")) + n) + ","))]
78- }
64+func addBoosting (t,u) = {
65+ let v = s.payments[0].amount
66+ let j = i(s.payments[0].assetId)
67+ let w = (d("global_boostingsAmount") + 1)
68+ let n = toString(w)
69+ if ((addressFromString(t) == unit))
70+ then throw("incorrect pool address")
71+ else [IntegerEntry("global_boostingsAmount", w), IntegerEntry((("boosting_" + n) + "_days"), u), IntegerEntry((("boosting_" + n) + "_totalAmount"), v), IntegerEntry((("boosting_" + n) + "_dailyAmount"), (v / u)), IntegerEntry((("boosting_" + n) + "_blockAmount"), (v / ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_startHeight"), height), IntegerEntry((("boosting_" + n) + "_finishHeight"), (height + ((u * b) * c))), IntegerEntry((("boosting_" + n) + "_finishTimestamp"), (lastBlock.timestamp + ((((u * b) * c) * 60) * 1000))), IntegerEntry((("boosting_" + n) + "_lastHeight"), height), StringEntry((("boosting_" + n) + "_assetId"), j), StringEntry((("boosting_" + n) + "_owner"), toString(s.caller)), StringEntry((("boosting_" + n) + "_poolId"), t), StringEntry((("pool_" + t) + "_boostings"), ((h((("pool_" + t) + "_boostings")) + n) + ","))]
72+ }
7973
8074
8175
8276 @Callable(s)
8377 func payBoosting (n) = m(n)
8478
8579
8680
8781 @Callable(s)
8882 func payBoostings () = {
8983 func x (y,z) = {
9084 let A = invoke(this, "payBoosting", [z], nil)
9185 if ((A == A))
9286 then A
9387 else throw("Strict value is not equal to itself.")
9488 }
9589
9690 let B = {
9791 let C = a
9892 let D = size(C)
9993 let E = 0
10094 func F (G,H) = if ((H >= D))
10195 then G
10296 else x(G, C[H])
10397
10498 func I (G,H) = if ((H >= D))
10599 then G
106100 else throw("List size exceeds 60")
107101
108102 I(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(F(E, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60)
109103 }
110104 if ((B == B))
111105 then nil
112106 else throw("Strict value is not equal to itself.")
113107 }
114108
115109

github/deemru/w8io/026f985 
33.32 ms