tx · GKFECfCpKP3NdGxAgoJuUGPeoLHA7w3JPshyyukBbV5R

3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez:  -0.00700000 Waves

2023.11.08 11:45 [2834158] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves

{ "type": 13, "id": "GKFECfCpKP3NdGxAgoJuUGPeoLHA7w3JPshyyukBbV5R", "fee": 700000, "feeAssetId": null, "timestamp": 1699433133966, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "3ReWo1YNQ1PCKHqztwH2uBeGrEqYYBQcSNuDui2a3cEuVyzTcEh8vw4GwFRe4WSdFnpT85FPkKTz7T2W5hjEQNkp" ], "script": "base64:BgIbCAISBAoCCAESAwoBCBIAEgMKAQgSABIDCgEICQACbGkJAMwIAgIBMQkAzAgCAgEyCQDMCAICATMJAMwIAgIBNAkAzAgCAgE1CQDMCAICATYJAMwIAgIBNwkAzAgCAgE4CQDMCAICATkJAMwIAgICMTAJAMwIAgICMTEJAMwIAgICMTIJAMwIAgICMTMJAMwIAgICMTQJAMwIAgICMTUJAMwIAgICMTYJAMwIAgICMTcJAMwIAgICMTgJAMwIAgICMTkJAMwIAgICMjAJAMwIAgICMjEJAMwIAgICMjIJAMwIAgICMjMJAMwIAgICMjQJAMwIAgICMjUJAMwIAgICMjYJAMwIAgICMjcJAMwIAgICMjgJAMwIAgICMjkJAMwIAgICMzAJAMwIAgICMzEJAMwIAgICMzIJAMwIAgICMzMJAMwIAgICMzQJAMwIAgICMzUJAMwIAgICMzYJAMwIAgICMzcJAMwIAgICMzgJAMwIAgICMzkJAMwIAgICNDAJAMwIAgICNDEJAMwIAgICNDIJAMwIAgICNDMJAMwIAgICNDQJAMwIAgICNDUJAMwIAgICNDYJAMwIAgICNDcJAMwIAgICNDgJAMwIAg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MF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgUFJGFjYzAAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAEgATABQAFQAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMAJAAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIAMwA0ADUANgA3ADgDCQAAAgUDZW5kBQNlbmQJAMwIAgkBDEludGVnZXJFbnRyeQICBmhlaWdodAUGaGVpZ2h0BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEKZGVsZXRlRW50cgEGcG9vbElkCQDMCAIJAQtEZWxldGVFbnRyeQEJAKwCAgkArAICAgVwb29sXwUGcG9vbElkAgpfYm9vc3RpbmdzBQNuaWwATsbbSA==", "height": 2834158, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ABZJApoav1djP3Q64dvmHhpTDBBHf38dSLwmbhoBPpAx Next: AG4uBoCjs4TNUi2No4zSUyZQKerKBRh1oJqUrV7fqZ8z Diff:
OldNewDifferences
176176 }
177177
178178
179+
180+@Callable(w)
181+func deleteEntr (x) = [DeleteEntry((("pool_" + x) + "_boostings"))]
182+
183+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = ["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", "55", "56"]
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 let q = h((("boosting_" + n) + "_poolId"))
5252 let r = dropRight(h((("pool_" + q) + "_boostings")), 1)
5353 let s = value(indexOf(r, n))
5454 if (if ((o != 0))
5555 then (p > o)
5656 else false)
5757 then {
5858 let t = (d((("boosting_" + n) + "_totalAmount")) / ((d((("boosting_" + n) + "_days")) * b) * c))
5959 let u = fraction((min([p, height]) - o), t, 1)
6060 [IntegerEntry((("boosting_" + n) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(h((("boosting_" + n) + "_poolId"))), u, k(h((("boosting_" + n) + "_assetId")))), StringEntry("getFinishedPoolId", q), StringEntry("getPoolBoostings", r), IntegerEntry("findIndex", s)]
6161 }
6262 else nil
6363 }
6464
6565
6666 func v (n) = {
6767 let o = d((("boosting_" + n) + "_lastHeight"))
6868 let p = d((("boosting_" + n) + "_finishHeight"))
6969 if ((o >= p))
7070 then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((h((("list ended " + toString(height)) + " boostingIds")) + n) + ","))]
7171 else nil
7272 }
7373
7474
7575 @Callable(w)
7676 func addBoosting (x,y) = if ((1 > y))
7777 then throw("amount of days has to be between 1 and 365")
7878 else if ((y > 365))
7979 then throw("amount of days has to be between 1 and 365")
8080 else if (false)
8181 then throw("under maintenance until further notice")
8282 else {
8383 let z = w.payments[0].amount
8484 if ((1440 > (z / y)))
8585 then throw((("boosting amount too small, minimum is " + toString((1440 * y))) + " of the smallest unit of payment asset"))
8686 else {
8787 let j = i(w.payments[0].assetId)
8888 if ((height == d("height")))
8989 then throw("wait 1 minute")
9090 else {
9191 let A = if ((size(h((("pool_" + x) + "_boostings"))) > 11))
9292 then throw("max 5 boosts per pool")
9393 else invoke(this, "entryEnded", nil, nil)
9494 if ((A == A))
9595 then {
9696 let n = if ((take(h((("list ended " + toString(height)) + " boostingIds")), 1) == "0"))
9797 then throw("wait till other boosts are finished")
9898 else take(h((("list ended " + toString(height)) + " boostingIds")), 1)
9999 if ((addressFromString(x) == unit))
100100 then throw("incorrect pool address")
101101 else [IntegerEntry((("boosting_" + n) + "_days"), y), IntegerEntry((("boosting_" + n) + "_totalAmount"), z), IntegerEntry((("boosting_" + n) + "_dailyAmount"), (z / y)), IntegerEntry((("boosting_" + n) + "_startHeight"), height), IntegerEntry((("boosting_" + n) + "_finishHeight"), (height + ((y * b) * c))), IntegerEntry((("boosting_" + n) + "_finishTimestamp"), (lastBlock.timestamp + ((((y * b) * c) * 60) * 1000))), IntegerEntry((("boosting_" + n) + "_lastHeight"), height), StringEntry((("boosting_" + n) + "_assetId"), j), StringEntry((("boosting_" + n) + "_owner"), toString(w.caller)), StringEntry((("boosting_" + n) + "_poolId"), x), StringEntry((("pool_" + x) + "_boostings"), ((h((("pool_" + x) + "_boostings")) + n) + ","))]
102102 }
103103 else throw("Strict value is not equal to itself.")
104104 }
105105 }
106106 }
107107
108108
109109
110110 @Callable(w)
111111 func payBoosting (n) = m(n)
112112
113113
114114
115115 @Callable(w)
116116 func payBoostings () = {
117117 func B (C,D) = {
118118 let E = invoke(this, "payBoosting", [D], nil)
119119 if ((E == E))
120120 then E
121121 else throw("Strict value is not equal to itself.")
122122 }
123123
124124 let F = {
125125 let G = a
126126 let H = size(G)
127127 let I = 0
128128 func J (K,L) = if ((L >= H))
129129 then K
130130 else B(K, G[L])
131131
132132 func M (K,L) = if ((L >= H))
133133 then K
134134 else throw("List size exceeds 56")
135135
136136 M(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(I, 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)
137137 }
138138 if ((F == F))
139139 then nil
140140 else throw("Strict value is not equal to itself.")
141141 }
142142
143143
144144
145145 @Callable(w)
146146 func endedBoostings (n) = v(n)
147147
148148
149149
150150 @Callable(w)
151151 func entryEnded () = {
152152 func B (C,D) = {
153153 let E = invoke(this, "endedBoostings", [D], nil)
154154 if ((E == E))
155155 then E
156156 else throw("Strict value is not equal to itself.")
157157 }
158158
159159 let N = {
160160 let G = a
161161 let H = size(G)
162162 let I = 0
163163 func J (K,L) = if ((L >= H))
164164 then K
165165 else B(K, G[L])
166166
167167 func M (K,L) = if ((L >= H))
168168 then K
169169 else throw("List size exceeds 56")
170170
171171 M(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(I, 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)
172172 }
173173 if ((N == N))
174174 then [IntegerEntry("height", height)]
175175 else throw("Strict value is not equal to itself.")
176176 }
177177
178178
179+
180+@Callable(w)
181+func deleteEntr (x) = [DeleteEntry((("pool_" + x) + "_boostings"))]
182+
183+

github/deemru/w8io/026f985 
38.09 ms