tx · 6dE1gqpaf9zpKivoEwrQki2CfnyWWU8EdDSXpQKEPL6m 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J: -0.01400000 Waves 2022.03.25 16:23 [1979511] smart account 3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J > SELF 0.00000000 Waves
{ "type": 13, "id": "6dE1gqpaf9zpKivoEwrQki2CfnyWWU8EdDSXpQKEPL6m", "fee": 1400000, "feeAssetId": null, "timestamp": 1648214625330, "version": 1, "sender": "3MuGfNhF98CNBCfthhoJEo6SYUv7zTgkK4J", "senderPublicKey": "4DthuG3xjZV9WtZ34Y66AummdAr67wRzwWsVQL4y2bob", "proofs": [ "4z5Wmt9nw26tPWpnnurHr26pX1azd8n46XhdzXskZCER2SkQ5FL2cURdDotLZ6JDddkdCj79brxr4TwUSWwVsaL9" ], "script": "base64:AAIFAAAAAAAAACAIAhIHCgUICAEBCBIAEgMKAQESABIAEgMKAQgSAwoBCAAAADUAAAAAC3JldmlzaW9uTnVtAgAAAAAAAAAACXNlcGFyYXRvcgIAAAACX18AAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAVNVUxUOAAAAAAABfXhAAAAAAAGTVVMVFg2CQABNgAAAAEFAAAABU1VTFQ2AAAAAAZNVUxUWDgJAAE2AAAAAQUAAAAFTVVMVDgAAAAAB01VTFRYMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAAKV0FWRVNJRFNUUgIAAAAFV0FWRVMAAAAAB1dBVkVTSUQJAAJZAAAAAQUAAAAKV0FWRVNJRFNUUgEAAAAMa2V5Qm9uZEFzc2V0AAAAAAIAAAANYm9uZF9hc3NldF9pZAEAAAAZa2V5QXVjdGlvbkNvbnRyYWN0QWRkcmVzcwAAAAACAAAAEGF1Y3Rpb25fY29udHJhY3QBAAAAGmtleU5ldXRyaW5vQ29udHJhY3RBZGRyZXNzAAAAAAIAAAAbJXNfX25ldXRyaW5vQ29udHJhY3RBZGRyZXNzAQAAABZrZXlNYXRoQ29udHJhY3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8yBAAAAAxzdGFraW5nU3RhcnQIBQAAAA0kdDAxODk4NzE5MDkxAAAAAl8zCQAFFAAAAAIFAAAAA25pbAkABEwAAAACBQAAAAt1c2VyTnNidEFtdAkABEwAAAACBQAAAAx0b3RhbE5zYnRBbXQJAARMAAAAAgUAAAAMc3Rha2luZ1N0YXJ0BQAAAANuaWwAAAAAD9rPZQ==", "chainId": 84, "height": 1979511, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fz8XGheAiqPy5iQSzyAZibArWH7mqsxfC91NZ4Xy29vc Next: 5WiKyA1KQfvsWUt4BFKaDJfAKLpeyhebAVsEceEqi5FU Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = " | |
4 | + | let a = "" | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = "__" | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 1000000 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(c) | |
13 | 13 | ||
14 | - | let f = toBigInt( | |
14 | + | let f = toBigInt(d) | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(1000000000000000000) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = "WAVES" | |
19 | 19 | ||
20 | - | func i () = "bond_asset_id" | |
20 | + | let i = fromBase58String(h) | |
21 | + | ||
22 | + | func j () = "bond_asset_id" | |
21 | 23 | ||
22 | 24 | ||
23 | - | func | |
25 | + | func k () = "auction_contract" | |
24 | 26 | ||
25 | 27 | ||
26 | - | func | |
28 | + | func l () = "%s__neutrinoContractAddress" | |
27 | 29 | ||
28 | 30 | ||
29 | - | func | |
31 | + | func m () = "%s__mathContract" | |
30 | 32 | ||
31 | 33 | ||
32 | - | func | |
34 | + | func n () = "%s__minLockAmount" | |
33 | 35 | ||
34 | 36 | ||
35 | - | func | |
37 | + | func o () = "%s__halfLife" | |
36 | 38 | ||
37 | 39 | ||
38 | - | func | |
40 | + | func p (q) = makeString(["%s%s%s", "paramByUser", toString(q), "amount"], b) | |
39 | 41 | ||
40 | 42 | ||
41 | - | func | |
43 | + | func r (q) = makeString(["%s%s%s", "paramByUser", toString(q), "start"], b) | |
42 | 44 | ||
43 | 45 | ||
44 | - | func | |
46 | + | func s (t,q,u) = makeString(["%s%s%s%s", "history", t, toString(q), toBase58String(u)], b) | |
45 | 47 | ||
46 | 48 | ||
47 | - | func | |
49 | + | func v () = makeString(["%s%s", "stats", "activeTotalLocked"], b) | |
48 | 50 | ||
49 | 51 | ||
50 | - | func | |
52 | + | func w () = makeString(["%s%s", "stats", "locksCount"], b) | |
51 | 53 | ||
52 | 54 | ||
53 | - | func | |
55 | + | func x () = makeString(["%s%s", "stats", "activeUsersCount"], b) | |
54 | 56 | ||
55 | 57 | ||
56 | - | func | |
58 | + | func y () = "%s__nextPeriod" | |
57 | 59 | ||
58 | 60 | ||
59 | - | func | |
61 | + | func z () = "supportedRewardAssets" | |
60 | 62 | ||
61 | 63 | ||
62 | - | func | |
64 | + | func A () = makeString(["%s%s%s", "dep", "lastNum"], b) | |
63 | 65 | ||
64 | 66 | ||
65 | - | func | |
67 | + | func B (q) = makeString(["%s%s%s", "userRwdFromDepNum", q], b) | |
66 | 68 | ||
67 | 69 | ||
68 | - | func | |
70 | + | func C (D,E) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(D), E], b) | |
69 | 71 | ||
70 | 72 | ||
71 | - | func | |
73 | + | func F (q,E) = makeString(["%s%s%s", "rwd", q, E], b) | |
72 | 74 | ||
73 | 75 | ||
74 | - | func | |
76 | + | func G (q,E) = makeString(["%s%s%s", "clm", q, E], b) | |
75 | 77 | ||
76 | 78 | ||
77 | - | func | |
79 | + | func H (E) = makeString(["%s%s", "notDistributed", E], b) | |
78 | 80 | ||
79 | 81 | ||
80 | - | func | |
82 | + | func I (J,K) = fraction(toBigInt(J), g, K) | |
81 | 83 | ||
82 | 84 | ||
83 | - | func | |
85 | + | func L (M) = valueOrElse(getInteger(this, M), 0) | |
84 | 86 | ||
85 | 87 | ||
86 | - | func | |
88 | + | func N (M,O) = valueOrElse(getInteger(this, M), O) | |
87 | 89 | ||
88 | 90 | ||
89 | - | func | |
91 | + | func P (M) = valueOrErrorMessage(getInteger(this, M), (("Mandatory this." + M) + " is not defined")) | |
90 | 92 | ||
91 | 93 | ||
92 | - | func | |
94 | + | func Q (M,O) = valueOrElse(getString(this, M), O) | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
97 | + | func R (M) = valueOrErrorMessage(getString(this, M), (("Mandatory this." + M) + " is not defined")) | |
96 | 98 | ||
97 | 99 | ||
98 | - | func | |
100 | + | func S (T) = valueOrErrorMessage(addressFromString(T), ("couldn't parse passed addressStr=" + T)) | |
99 | 101 | ||
100 | 102 | ||
101 | - | func | |
103 | + | func U (V) = if ((V == h)) | |
102 | 104 | then unit | |
103 | - | else fromBase58String( | |
105 | + | else fromBase58String(V) | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
107 | - | let | |
108 | - | if ($isInstanceOf( | |
108 | + | func W (X) = { | |
109 | + | let Y = X | |
110 | + | if ($isInstanceOf(Y, "Int")) | |
109 | 111 | then { | |
110 | - | let | |
111 | - | | |
112 | + | let Z = Y | |
113 | + | Z | |
112 | 114 | } | |
113 | 115 | else throw("fail to cast into Int") | |
114 | 116 | } | |
115 | 117 | ||
116 | 118 | ||
117 | - | func | |
119 | + | func aa (ab,ac,ad,ae) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(ab), toString(ac), toString(ad), toString(ae)], b) | |
118 | 120 | ||
119 | 121 | ||
120 | - | func | |
122 | + | func af (ag,ah) = makeString(["%s%d%d%s", ag, toString(lastBlock.height), toString(lastBlock.timestamp), ah], b) | |
121 | 123 | ||
122 | 124 | ||
123 | - | func | |
125 | + | func ai (t,q,u,ab,ac,ad,ae) = StringEntry(s(t, q, u), aa(ab, ac, ad, ae)) | |
124 | 126 | ||
125 | 127 | ||
126 | - | func | |
128 | + | func aj (q,u,ah) = StringEntry(s("claim", q, u), af(toString(q), ah)) | |
127 | 129 | ||
128 | 130 | ||
129 | - | func | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | $Tuple3([ | |
131 | + | func ak (al,am,an) = { | |
132 | + | let ao = L(w()) | |
133 | + | let ap = L(x()) | |
134 | + | let aq = L(v()) | |
135 | + | let ar = (aq + al) | |
136 | + | $Tuple3([IntegerEntry(w(), (ao + am)), IntegerEntry(x(), (ap + an)), IntegerEntry(v(), ar)], aq, ar) | |
135 | 137 | } | |
136 | 138 | ||
137 | 139 | ||
138 | - | func | |
140 | + | func as (q,at,au) = [IntegerEntry(p(q), at), IntegerEntry(r(q), au)] | |
139 | 141 | ||
140 | 142 | ||
141 | - | func | |
142 | - | let | |
143 | - | $Tuple4(fromBase58String(getStringValue( | |
143 | + | func av () = { | |
144 | + | let aw = addressFromStringValue(R(l())) | |
145 | + | $Tuple4(fromBase58String(getStringValue(aw, k())), fromBase58String(getStringValue(aw, j())), P(n()), P(o())) | |
144 | 146 | } | |
145 | 147 | ||
146 | 148 | ||
147 | - | func | |
149 | + | func ax (q) = (N(p(q), 0) > 0) | |
148 | 150 | ||
149 | 151 | ||
150 | - | func | |
151 | - | then $Tuple3(false, | |
152 | + | func ay (q) = if (ax(q)) | |
153 | + | then $Tuple3(false, P(p(q)), P(r(q))) | |
152 | 154 | else unit | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
157 | + | func az (q) = valueOrErrorMessage(ay(q), (("User " + toString(q)) + " is not defined")) | |
156 | 158 | ||
157 | 159 | ||
158 | - | let | |
160 | + | let aA = Q(z(), "") | |
159 | 161 | ||
160 | - | let | |
162 | + | let aB = split(aA, "_") | |
161 | 163 | ||
162 | - | func | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | $Tuple4(( | |
164 | + | func aC (q,aD,aE,aF,aG) = { | |
165 | + | let aH = C(aG, aD) | |
166 | + | let aI = parseBigIntValue(Q(C(aG, aD), "0")) | |
167 | + | let aJ = parseBigIntValue(Q(C(aF, aD), "0")) | |
168 | + | let aK = toInt(fraction((aI - aJ), aE, g)) | |
169 | + | let aL = F(q, aD) | |
170 | + | let aM = N(aL, 0) | |
171 | + | $Tuple4((aM + aK), aM, aK, aL) | |
170 | 172 | } | |
171 | 173 | ||
172 | 174 | ||
173 | - | func | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | func | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | ( | |
175 | + | func aN (aO,q,aP) = { | |
176 | + | let aE = toBigInt(aP) | |
177 | + | let aQ = B(q) | |
178 | + | let aF = N(aQ, -1) | |
179 | + | let aG = N(A(), -1) | |
180 | + | func aR (aS,aT) = { | |
181 | + | let aU = aC(q, aT, aE, aF, aG) | |
182 | + | let aV = aU._1 | |
183 | + | let aW = aU._2 | |
184 | + | let aX = aU._3 | |
185 | + | let aL = aU._4 | |
186 | + | (aS :+ IntegerEntry(aL, aV)) | |
185 | 187 | } | |
186 | 188 | ||
187 | - | if (if (( | |
188 | - | then ( | |
189 | + | if (if ((aG == -1)) | |
190 | + | then (aF == -1) | |
189 | 191 | else false) | |
190 | 192 | then nil | |
191 | - | else if (if (( | |
192 | - | then ( | |
193 | + | else if (if ((aG == -1)) | |
194 | + | then (aF > -1) | |
193 | 195 | else false) | |
194 | 196 | then throw("invalid depositNumLast and depositNumUser state") | |
195 | - | else if (if (( | |
196 | - | then ( | |
197 | + | else if (if ((aG > -1)) | |
198 | + | then (aF == -1) | |
197 | 199 | else false) | |
198 | - | then if ( | |
199 | - | then [IntegerEntry( | |
200 | + | then if (aO) | |
201 | + | then [IntegerEntry(aQ, aG)] | |
200 | 202 | else ({ | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | func | |
205 | - | then | |
206 | - | else | |
203 | + | let aY = aB | |
204 | + | let aZ = size(aY) | |
205 | + | let ba = nil | |
206 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
207 | + | then bc | |
208 | + | else aR(bc, aY[bd]) | |
207 | 209 | ||
208 | - | func | |
209 | - | then | |
210 | + | func be (bc,bd) = if ((bd >= aZ)) | |
211 | + | then bc | |
210 | 212 | else throw("List size exceeds 10") | |
211 | 213 | ||
212 | - | | |
213 | - | } :+ IntegerEntry( | |
214 | - | else if (if (( | |
215 | - | then ( | |
214 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
215 | + | } :+ IntegerEntry(aQ, aG)) | |
216 | + | else if (if ((aG > -1)) | |
217 | + | then (aF > -1) | |
216 | 218 | else false) | |
217 | - | then if ( | |
218 | - | then [IntegerEntry( | |
219 | + | then if (aO) | |
220 | + | then [IntegerEntry(aQ, aG)] | |
219 | 221 | else ({ | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | func | |
224 | - | then | |
225 | - | else | |
222 | + | let aY = aB | |
223 | + | let aZ = size(aY) | |
224 | + | let ba = nil | |
225 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
226 | + | then bc | |
227 | + | else aR(bc, aY[bd]) | |
226 | 228 | ||
227 | - | func | |
228 | - | then | |
229 | + | func be (bc,bd) = if ((bd >= aZ)) | |
230 | + | then bc | |
229 | 231 | else throw("List size exceeds 10") | |
230 | 232 | ||
231 | - | | |
232 | - | } :+ IntegerEntry( | |
233 | - | else throw(((("uncovered condition: depositNumLast=" + toString( | |
233 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
234 | + | } :+ IntegerEntry(aQ, aG)) | |
235 | + | else throw(((("uncovered condition: depositNumLast=" + toString(aG)) + " depositNumUser=") + toString(aF))) | |
234 | 236 | } | |
235 | 237 | ||
236 | 238 | ||
237 | - | func | |
238 | - | let | |
239 | - | let | |
240 | - | [IntegerEntry( | |
239 | + | func bf (E,bg) = { | |
240 | + | let bh = H(E) | |
241 | + | let bi = N(bh, 0) | |
242 | + | [IntegerEntry(bh, (bi + bg))] | |
241 | 243 | } | |
242 | 244 | ||
243 | 245 | ||
244 | - | @Callable( | |
245 | - | func constructor ( | |
246 | + | @Callable(bj) | |
247 | + | func constructor (bk,bl,bm,bn,bo) = if ((bj.caller != this)) | |
246 | 248 | then throw("Permission denied") | |
247 | - | else [ | |
249 | + | else [StringEntry(l(), bk), StringEntry(m(), bl), IntegerEntry(n(), bm), IntegerEntry(o(), bn), StringEntry(z(), bo)] | |
248 | 250 | ||
249 | 251 | ||
250 | 252 | ||
251 | - | @Callable( | |
253 | + | @Callable(bj) | |
252 | 254 | func stake () = { | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | if ((size( | |
255 | + | let bp = av() | |
256 | + | let bq = bp._1 | |
257 | + | let br = bp._2 | |
258 | + | let bm = bp._3 | |
259 | + | let bn = bp._4 | |
260 | + | if ((size(bj.payments) != 1)) | |
259 | 261 | then throw("Invalid payments size") | |
260 | 262 | else { | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | if (( | |
266 | - | then throw( | |
263 | + | let bs = bj.payments[0] | |
264 | + | let at = bs.amount | |
265 | + | let bt = (("Invalid asset. " + toBase58String(br)) + " is expected") | |
266 | + | let aD = valueOrErrorMessage(bs.assetId, bt) | |
267 | + | if ((aD != br)) | |
268 | + | then throw(bt) | |
267 | 269 | else { | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | then | |
276 | - | else ( | |
277 | - | let | |
270 | + | let q = bj.caller | |
271 | + | let bu = toString(bj.caller) | |
272 | + | let bv = valueOrElse(ay(q), $Tuple3(true, 0, -1)) | |
273 | + | let aO = bv._1 | |
274 | + | let bw = bv._2 | |
275 | + | let bx = bv._3 | |
276 | + | let by = if (aO) | |
277 | + | then at | |
278 | + | else (at + bw) | |
279 | + | let bz = if (aO) | |
278 | 280 | then height | |
279 | 281 | else { | |
280 | - | let | |
281 | - | | |
282 | + | let bA = addressFromStringValue(R(m())) | |
283 | + | W(invoke(bA, "mergeStakesREADONLY", [at, height, bw, bx, bn], nil)) | |
282 | 284 | } | |
283 | - | if (( | |
284 | - | then throw(("Min lock amount is " + toString( | |
285 | + | if ((bm > by)) | |
286 | + | then throw(("Min lock amount is " + toString(bm))) | |
285 | 287 | else { | |
286 | - | let | |
288 | + | let bB = ak(at, 1, if (aO) | |
287 | 289 | then 1 | |
288 | 290 | else 0) | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | ((([ | |
291 | + | let bC = bB._1 | |
292 | + | let bD = bB._2 | |
293 | + | let bE = bB._3 | |
294 | + | ((([ai("stake", q, bj.transactionId, bw, bx, by, bz)] ++ aN(aO, bu, bw)) ++ as(q, by, bz)) ++ bC) | |
293 | 295 | } | |
294 | 296 | } | |
295 | 297 | } | |
297 | 299 | ||
298 | 300 | ||
299 | 301 | ||
300 | - | @Callable( | |
301 | - | func unstake ( | |
302 | + | @Callable(bj) | |
303 | + | func unstake (at) = if ((size(bj.payments) != 0)) | |
302 | 304 | then throw("unstake doesn't require any payment") | |
303 | 305 | else { | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ((0 >= | |
306 | + | let q = bj.caller | |
307 | + | let bu = toString(q) | |
308 | + | let bF = av() | |
309 | + | let bG = bF._1 | |
310 | + | let br = bF._2 | |
311 | + | let bm = bF._3 | |
312 | + | let bn = bF._4 | |
313 | + | let bH = az(q) | |
314 | + | let aO = bH._1 | |
315 | + | let bw = bH._2 | |
316 | + | let bI = bH._3 | |
317 | + | if ((0 >= bw)) | |
316 | 318 | then throw("Nothing to unstake") | |
317 | - | else if (( | |
318 | - | then throw(((("Requested " + toString( | |
319 | + | else if ((at > bw)) | |
320 | + | then throw(((("Requested " + toString(at)) + ", but staked only ") + toString(bw))) | |
319 | 321 | else { | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
322 | + | let bA = addressFromStringValue(R(m())) | |
323 | + | let bJ = W(invoke(bA, "getUnstakeComissionAmountREADONLY", [at, bI, bn], nil)) | |
324 | + | let bK = ak(-(at), if ((at == bw)) | |
323 | 325 | then -1 | |
324 | - | else 0, if (( | |
326 | + | else 0, if ((at == bw)) | |
325 | 327 | then -1 | |
326 | 328 | else 0) | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | ((([ScriptTransfer( | |
329 | + | let bC = bK._1 | |
330 | + | let bD = bK._2 | |
331 | + | let bE = bK._3 | |
332 | + | ((([ScriptTransfer(q, (at - bJ), br), ScriptTransfer(Address(bG), bJ, br), ai("unstake", q, bj.transactionId, bw, bI, (bw - at), bI)] ++ aN(false, bu, bw)) ++ as(q, (bw - at), bI)) ++ bC) | |
331 | 333 | } | |
332 | 334 | } | |
333 | 335 | ||
334 | 336 | ||
335 | 337 | ||
336 | - | @Callable( | |
337 | - | func deposit () = if ((size( | |
338 | + | @Callable(bj) | |
339 | + | func deposit () = if ((size(bj.payments) != 1)) | |
338 | 340 | then throw("exact 1 payment is allowed only") | |
339 | 341 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | then | |
346 | - | else | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | if ((0 > | |
342 | + | let bL = bj.payments[0] | |
343 | + | let at = bL.amount | |
344 | + | let bM = valueOrElse(bL.assetId, i) | |
345 | + | let bN = toBase58String(bM) | |
346 | + | let bO = if ((bM == i)) | |
347 | + | then f | |
348 | + | else e | |
349 | + | let bP = toBigInt(at) | |
350 | + | let bD = N(v(), 0) | |
351 | + | let bQ = toBigInt(bD) | |
352 | + | if ((0 > bD)) | |
351 | 353 | then throw("TODO: case is not supported") | |
352 | - | else if (( | |
353 | - | then | |
354 | + | else if ((bD == 0)) | |
355 | + | then bf(bN, at) | |
354 | 356 | else { | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | if (!(contains( | |
360 | - | then throw((( | |
357 | + | let bR = fraction(bP, g, bQ) | |
358 | + | let bS = A() | |
359 | + | let aG = N(bS, -1) | |
360 | + | let bT = (aG + 1) | |
361 | + | if (!(contains(aA, bN))) | |
362 | + | then throw(((aA + " doesn't contain ") + bN)) | |
361 | 363 | else { | |
362 | - | func | |
363 | - | let | |
364 | - | let | |
365 | - | ( | |
366 | - | then StringEntry( | |
367 | - | else StringEntry( | |
364 | + | func bU (aS,bV) = { | |
365 | + | let bW = C(bT, bV) | |
366 | + | let bX = Q(C(aG, bV), "0") | |
367 | + | (aS :+ (if ((bV == bN)) | |
368 | + | then StringEntry(bW, toString((parseBigIntValue(bX) + bR))) | |
369 | + | else StringEntry(bW, bX))) | |
368 | 370 | } | |
369 | 371 | ||
370 | 372 | ({ | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | func | |
375 | - | then | |
376 | - | else | |
373 | + | let aY = aB | |
374 | + | let aZ = size(aY) | |
375 | + | let ba = nil | |
376 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
377 | + | then bc | |
378 | + | else bU(bc, aY[bd]) | |
377 | 379 | ||
378 | - | func | |
379 | - | then | |
380 | + | func be (bc,bd) = if ((bd >= aZ)) | |
381 | + | then bc | |
380 | 382 | else throw("List size exceeds 10") | |
381 | 383 | ||
382 | - | | |
383 | - | } :+ IntegerEntry( | |
384 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
385 | + | } :+ IntegerEntry(bS, bT)) | |
384 | 386 | } | |
385 | 387 | } | |
386 | 388 | } | |
387 | 389 | ||
388 | 390 | ||
389 | 391 | ||
390 | - | @Callable( | |
392 | + | @Callable(bj) | |
391 | 393 | func claimRewards () = { | |
392 | - | let | |
393 | - | let | |
394 | - | if ((size( | |
394 | + | let q = bj.caller | |
395 | + | let bu = toString(q) | |
396 | + | if ((size(bj.payments) > 0)) | |
395 | 397 | then throw("payments are not accepted") | |
396 | 398 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | func | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | if ((0 >= | |
418 | - | then $Tuple2( | |
419 | - | else $Tuple2(((( | |
399 | + | let bY = valueOrElse(ay(q), $Tuple3(true, 0, 0)) | |
400 | + | let aO = bY._1 | |
401 | + | let aP = bY._2 | |
402 | + | let bZ = bY._3 | |
403 | + | let aE = toBigInt(aP) | |
404 | + | let aQ = B(bu) | |
405 | + | let aF = N(aQ, -1) | |
406 | + | let aG = N(A(), -1) | |
407 | + | func ca (aS,aT) = { | |
408 | + | let cb = aC(bu, aT, aE, aF, aG) | |
409 | + | let aV = cb._1 | |
410 | + | let aW = cb._2 | |
411 | + | let aX = cb._3 | |
412 | + | let aL = cb._4 | |
413 | + | let cc = G(bu, aT) | |
414 | + | let cd = aS | |
415 | + | let ce = cd._1 | |
416 | + | let cf = cd._2 | |
417 | + | let cg = makeString([aT, toString(aV)], ":") | |
418 | + | let ch = makeString([cf, cg], "_") | |
419 | + | if ((0 >= aV)) | |
420 | + | then $Tuple2(ce, ch) | |
421 | + | else $Tuple2((((ce :+ ScriptTransfer(q, aV, U(aT))) :+ IntegerEntry(cc, (valueOrElse(getInteger(cc), 0) + aV))) :+ IntegerEntry(aL, 0)), ch) | |
420 | 422 | } | |
421 | 423 | ||
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | func | |
427 | - | then | |
428 | - | else | |
424 | + | let ci = { | |
425 | + | let aY = aB | |
426 | + | let aZ = size(aY) | |
427 | + | let ba = $Tuple2(nil, "") | |
428 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
429 | + | then bc | |
430 | + | else ca(bc, aY[bd]) | |
429 | 431 | ||
430 | - | func | |
431 | - | then | |
432 | + | func be (bc,bd) = if ((bd >= aZ)) | |
433 | + | then bc | |
432 | 434 | else throw("List size exceeds 10") | |
433 | 435 | ||
434 | - | | |
436 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
435 | 437 | } | |
436 | - | let | |
437 | - | let | |
438 | - | if ((0 >= size( | |
438 | + | let cj = ci._1 | |
439 | + | let ck = ci._2 | |
440 | + | if ((0 >= size(cj))) | |
439 | 441 | then throw("nothing to claim") | |
440 | - | else (( | |
442 | + | else ((cj :+ IntegerEntry(aQ, aG)) :+ aj(q, bj.transactionId, drop(ck, 1))) | |
441 | 443 | } | |
442 | 444 | } | |
443 | 445 | ||
444 | 446 | ||
445 | 447 | ||
446 | - | @Callable( | |
447 | - | func unclaimedRewardsREADONLY ( | |
448 | - | func | |
448 | + | @Callable(bj) | |
449 | + | func unclaimedRewardsREADONLY (bu) = { | |
450 | + | func cl (aS,aT) = ((aS + makeString([aT, "0", "0"], ":")) + "_") | |
449 | 451 | ||
450 | - | let | |
452 | + | let cm = if ((bu == "")) | |
451 | 453 | then { | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | func | |
456 | - | then | |
457 | - | else | |
454 | + | let aY = aB | |
455 | + | let aZ = size(aY) | |
456 | + | let ba = "" | |
457 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
458 | + | then bc | |
459 | + | else cl(bc, aY[bd]) | |
458 | 460 | ||
459 | - | func | |
460 | - | then | |
461 | + | func be (bc,bd) = if ((bd >= aZ)) | |
462 | + | then bc | |
461 | 463 | else throw("List size exceeds 10") | |
462 | 464 | ||
463 | - | | |
465 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
464 | 466 | } | |
465 | 467 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | func | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | (( | |
468 | + | let q = addressFromStringValue(bu) | |
469 | + | let cn = valueOrElse(ay(q), $Tuple3(true, 0, 0)) | |
470 | + | let aO = cn._1 | |
471 | + | let aP = cn._2 | |
472 | + | let bZ = cn._3 | |
473 | + | let aE = toBigInt(aP) | |
474 | + | let aQ = B(bu) | |
475 | + | let aF = N(aQ, -1) | |
476 | + | let aG = N(A(), -1) | |
477 | + | func ca (aS,aT) = { | |
478 | + | let co = aC(bu, aT, aE, aF, aG) | |
479 | + | let aV = co._1 | |
480 | + | let aW = co._2 | |
481 | + | let aX = co._3 | |
482 | + | let aL = co._4 | |
483 | + | let cp = valueOrElse(getInteger(G(bu, aT)), 0) | |
484 | + | ((aS + makeString([aT, "10", "10"], ":")) + "_") | |
483 | 485 | } | |
484 | 486 | ||
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | func | |
489 | - | then | |
490 | - | else | |
487 | + | let aY = aB | |
488 | + | let aZ = size(aY) | |
489 | + | let ba = "" | |
490 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
491 | + | then bc | |
492 | + | else ca(bc, aY[bd]) | |
491 | 493 | ||
492 | - | func | |
493 | - | then | |
494 | + | func be (bc,bd) = if ((bd >= aZ)) | |
495 | + | then bc | |
494 | 496 | else throw("List size exceeds 10") | |
495 | 497 | ||
496 | - | | |
498 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
497 | 499 | } | |
498 | - | $Tuple2(nil, dropRight( | |
500 | + | $Tuple2(nil, dropRight(cm, 1)) | |
499 | 501 | } | |
500 | 502 | ||
501 | 503 | ||
502 | 504 | ||
503 | - | @Callable( | |
504 | - | func nsbtStakingSYSREADONLY ( | |
505 | - | let | |
506 | - | if (( | |
507 | - | then $Tuple2(nil, [0, | |
505 | + | @Callable(bj) | |
506 | + | func nsbtStakingSYSREADONLY (bu) = { | |
507 | + | let cq = N(v(), 0) | |
508 | + | if ((bu == "")) | |
509 | + | then $Tuple2(nil, [0, cq, 0]) | |
508 | 510 | else { | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | $Tuple2(nil, [ | |
511 | + | let q = S(bu) | |
512 | + | let cr = valueOrElse(ay(q), $Tuple3(true, 0, 0)) | |
513 | + | let aO = cr._1 | |
514 | + | let cs = cr._2 | |
515 | + | let bZ = cr._3 | |
516 | + | $Tuple2(nil, [cs, cq, bZ]) | |
515 | 517 | } | |
516 | 518 | } | |
517 | 519 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = " | |
4 | + | let a = "" | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = "__" | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = 1000000 | |
9 | 9 | ||
10 | - | let d = | |
10 | + | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = toBigInt(c) | |
13 | 13 | ||
14 | - | let f = toBigInt( | |
14 | + | let f = toBigInt(d) | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = toBigInt(1000000000000000000) | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = "WAVES" | |
19 | 19 | ||
20 | - | func i () = "bond_asset_id" | |
20 | + | let i = fromBase58String(h) | |
21 | + | ||
22 | + | func j () = "bond_asset_id" | |
21 | 23 | ||
22 | 24 | ||
23 | - | func | |
25 | + | func k () = "auction_contract" | |
24 | 26 | ||
25 | 27 | ||
26 | - | func | |
28 | + | func l () = "%s__neutrinoContractAddress" | |
27 | 29 | ||
28 | 30 | ||
29 | - | func | |
31 | + | func m () = "%s__mathContract" | |
30 | 32 | ||
31 | 33 | ||
32 | - | func | |
34 | + | func n () = "%s__minLockAmount" | |
33 | 35 | ||
34 | 36 | ||
35 | - | func | |
37 | + | func o () = "%s__halfLife" | |
36 | 38 | ||
37 | 39 | ||
38 | - | func | |
40 | + | func p (q) = makeString(["%s%s%s", "paramByUser", toString(q), "amount"], b) | |
39 | 41 | ||
40 | 42 | ||
41 | - | func | |
43 | + | func r (q) = makeString(["%s%s%s", "paramByUser", toString(q), "start"], b) | |
42 | 44 | ||
43 | 45 | ||
44 | - | func | |
46 | + | func s (t,q,u) = makeString(["%s%s%s%s", "history", t, toString(q), toBase58String(u)], b) | |
45 | 47 | ||
46 | 48 | ||
47 | - | func | |
49 | + | func v () = makeString(["%s%s", "stats", "activeTotalLocked"], b) | |
48 | 50 | ||
49 | 51 | ||
50 | - | func | |
52 | + | func w () = makeString(["%s%s", "stats", "locksCount"], b) | |
51 | 53 | ||
52 | 54 | ||
53 | - | func | |
55 | + | func x () = makeString(["%s%s", "stats", "activeUsersCount"], b) | |
54 | 56 | ||
55 | 57 | ||
56 | - | func | |
58 | + | func y () = "%s__nextPeriod" | |
57 | 59 | ||
58 | 60 | ||
59 | - | func | |
61 | + | func z () = "supportedRewardAssets" | |
60 | 62 | ||
61 | 63 | ||
62 | - | func | |
64 | + | func A () = makeString(["%s%s%s", "dep", "lastNum"], b) | |
63 | 65 | ||
64 | 66 | ||
65 | - | func | |
67 | + | func B (q) = makeString(["%s%s%s", "userRwdFromDepNum", q], b) | |
66 | 68 | ||
67 | 69 | ||
68 | - | func | |
70 | + | func C (D,E) = makeString(["%s%d", "rwdPerNsbtSumByDepNum", toString(D), E], b) | |
69 | 71 | ||
70 | 72 | ||
71 | - | func | |
73 | + | func F (q,E) = makeString(["%s%s%s", "rwd", q, E], b) | |
72 | 74 | ||
73 | 75 | ||
74 | - | func | |
76 | + | func G (q,E) = makeString(["%s%s%s", "clm", q, E], b) | |
75 | 77 | ||
76 | 78 | ||
77 | - | func | |
79 | + | func H (E) = makeString(["%s%s", "notDistributed", E], b) | |
78 | 80 | ||
79 | 81 | ||
80 | - | func | |
82 | + | func I (J,K) = fraction(toBigInt(J), g, K) | |
81 | 83 | ||
82 | 84 | ||
83 | - | func | |
85 | + | func L (M) = valueOrElse(getInteger(this, M), 0) | |
84 | 86 | ||
85 | 87 | ||
86 | - | func | |
88 | + | func N (M,O) = valueOrElse(getInteger(this, M), O) | |
87 | 89 | ||
88 | 90 | ||
89 | - | func | |
91 | + | func P (M) = valueOrErrorMessage(getInteger(this, M), (("Mandatory this." + M) + " is not defined")) | |
90 | 92 | ||
91 | 93 | ||
92 | - | func | |
94 | + | func Q (M,O) = valueOrElse(getString(this, M), O) | |
93 | 95 | ||
94 | 96 | ||
95 | - | func | |
97 | + | func R (M) = valueOrErrorMessage(getString(this, M), (("Mandatory this." + M) + " is not defined")) | |
96 | 98 | ||
97 | 99 | ||
98 | - | func | |
100 | + | func S (T) = valueOrErrorMessage(addressFromString(T), ("couldn't parse passed addressStr=" + T)) | |
99 | 101 | ||
100 | 102 | ||
101 | - | func | |
103 | + | func U (V) = if ((V == h)) | |
102 | 104 | then unit | |
103 | - | else fromBase58String( | |
105 | + | else fromBase58String(V) | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
107 | - | let | |
108 | - | if ($isInstanceOf( | |
108 | + | func W (X) = { | |
109 | + | let Y = X | |
110 | + | if ($isInstanceOf(Y, "Int")) | |
109 | 111 | then { | |
110 | - | let | |
111 | - | | |
112 | + | let Z = Y | |
113 | + | Z | |
112 | 114 | } | |
113 | 115 | else throw("fail to cast into Int") | |
114 | 116 | } | |
115 | 117 | ||
116 | 118 | ||
117 | - | func | |
119 | + | func aa (ab,ac,ad,ae) = makeString(["%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(ab), toString(ac), toString(ad), toString(ae)], b) | |
118 | 120 | ||
119 | 121 | ||
120 | - | func | |
122 | + | func af (ag,ah) = makeString(["%s%d%d%s", ag, toString(lastBlock.height), toString(lastBlock.timestamp), ah], b) | |
121 | 123 | ||
122 | 124 | ||
123 | - | func | |
125 | + | func ai (t,q,u,ab,ac,ad,ae) = StringEntry(s(t, q, u), aa(ab, ac, ad, ae)) | |
124 | 126 | ||
125 | 127 | ||
126 | - | func | |
128 | + | func aj (q,u,ah) = StringEntry(s("claim", q, u), af(toString(q), ah)) | |
127 | 129 | ||
128 | 130 | ||
129 | - | func | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | let | |
134 | - | $Tuple3([ | |
131 | + | func ak (al,am,an) = { | |
132 | + | let ao = L(w()) | |
133 | + | let ap = L(x()) | |
134 | + | let aq = L(v()) | |
135 | + | let ar = (aq + al) | |
136 | + | $Tuple3([IntegerEntry(w(), (ao + am)), IntegerEntry(x(), (ap + an)), IntegerEntry(v(), ar)], aq, ar) | |
135 | 137 | } | |
136 | 138 | ||
137 | 139 | ||
138 | - | func | |
140 | + | func as (q,at,au) = [IntegerEntry(p(q), at), IntegerEntry(r(q), au)] | |
139 | 141 | ||
140 | 142 | ||
141 | - | func | |
142 | - | let | |
143 | - | $Tuple4(fromBase58String(getStringValue( | |
143 | + | func av () = { | |
144 | + | let aw = addressFromStringValue(R(l())) | |
145 | + | $Tuple4(fromBase58String(getStringValue(aw, k())), fromBase58String(getStringValue(aw, j())), P(n()), P(o())) | |
144 | 146 | } | |
145 | 147 | ||
146 | 148 | ||
147 | - | func | |
149 | + | func ax (q) = (N(p(q), 0) > 0) | |
148 | 150 | ||
149 | 151 | ||
150 | - | func | |
151 | - | then $Tuple3(false, | |
152 | + | func ay (q) = if (ax(q)) | |
153 | + | then $Tuple3(false, P(p(q)), P(r(q))) | |
152 | 154 | else unit | |
153 | 155 | ||
154 | 156 | ||
155 | - | func | |
157 | + | func az (q) = valueOrErrorMessage(ay(q), (("User " + toString(q)) + " is not defined")) | |
156 | 158 | ||
157 | 159 | ||
158 | - | let | |
160 | + | let aA = Q(z(), "") | |
159 | 161 | ||
160 | - | let | |
162 | + | let aB = split(aA, "_") | |
161 | 163 | ||
162 | - | func | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | $Tuple4(( | |
164 | + | func aC (q,aD,aE,aF,aG) = { | |
165 | + | let aH = C(aG, aD) | |
166 | + | let aI = parseBigIntValue(Q(C(aG, aD), "0")) | |
167 | + | let aJ = parseBigIntValue(Q(C(aF, aD), "0")) | |
168 | + | let aK = toInt(fraction((aI - aJ), aE, g)) | |
169 | + | let aL = F(q, aD) | |
170 | + | let aM = N(aL, 0) | |
171 | + | $Tuple4((aM + aK), aM, aK, aL) | |
170 | 172 | } | |
171 | 173 | ||
172 | 174 | ||
173 | - | func | |
174 | - | let | |
175 | - | let | |
176 | - | let | |
177 | - | let | |
178 | - | func | |
179 | - | let | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | ( | |
175 | + | func aN (aO,q,aP) = { | |
176 | + | let aE = toBigInt(aP) | |
177 | + | let aQ = B(q) | |
178 | + | let aF = N(aQ, -1) | |
179 | + | let aG = N(A(), -1) | |
180 | + | func aR (aS,aT) = { | |
181 | + | let aU = aC(q, aT, aE, aF, aG) | |
182 | + | let aV = aU._1 | |
183 | + | let aW = aU._2 | |
184 | + | let aX = aU._3 | |
185 | + | let aL = aU._4 | |
186 | + | (aS :+ IntegerEntry(aL, aV)) | |
185 | 187 | } | |
186 | 188 | ||
187 | - | if (if (( | |
188 | - | then ( | |
189 | + | if (if ((aG == -1)) | |
190 | + | then (aF == -1) | |
189 | 191 | else false) | |
190 | 192 | then nil | |
191 | - | else if (if (( | |
192 | - | then ( | |
193 | + | else if (if ((aG == -1)) | |
194 | + | then (aF > -1) | |
193 | 195 | else false) | |
194 | 196 | then throw("invalid depositNumLast and depositNumUser state") | |
195 | - | else if (if (( | |
196 | - | then ( | |
197 | + | else if (if ((aG > -1)) | |
198 | + | then (aF == -1) | |
197 | 199 | else false) | |
198 | - | then if ( | |
199 | - | then [IntegerEntry( | |
200 | + | then if (aO) | |
201 | + | then [IntegerEntry(aQ, aG)] | |
200 | 202 | else ({ | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | func | |
205 | - | then | |
206 | - | else | |
203 | + | let aY = aB | |
204 | + | let aZ = size(aY) | |
205 | + | let ba = nil | |
206 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
207 | + | then bc | |
208 | + | else aR(bc, aY[bd]) | |
207 | 209 | ||
208 | - | func | |
209 | - | then | |
210 | + | func be (bc,bd) = if ((bd >= aZ)) | |
211 | + | then bc | |
210 | 212 | else throw("List size exceeds 10") | |
211 | 213 | ||
212 | - | | |
213 | - | } :+ IntegerEntry( | |
214 | - | else if (if (( | |
215 | - | then ( | |
214 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
215 | + | } :+ IntegerEntry(aQ, aG)) | |
216 | + | else if (if ((aG > -1)) | |
217 | + | then (aF > -1) | |
216 | 218 | else false) | |
217 | - | then if ( | |
218 | - | then [IntegerEntry( | |
219 | + | then if (aO) | |
220 | + | then [IntegerEntry(aQ, aG)] | |
219 | 221 | else ({ | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | func | |
224 | - | then | |
225 | - | else | |
222 | + | let aY = aB | |
223 | + | let aZ = size(aY) | |
224 | + | let ba = nil | |
225 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
226 | + | then bc | |
227 | + | else aR(bc, aY[bd]) | |
226 | 228 | ||
227 | - | func | |
228 | - | then | |
229 | + | func be (bc,bd) = if ((bd >= aZ)) | |
230 | + | then bc | |
229 | 231 | else throw("List size exceeds 10") | |
230 | 232 | ||
231 | - | | |
232 | - | } :+ IntegerEntry( | |
233 | - | else throw(((("uncovered condition: depositNumLast=" + toString( | |
233 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
234 | + | } :+ IntegerEntry(aQ, aG)) | |
235 | + | else throw(((("uncovered condition: depositNumLast=" + toString(aG)) + " depositNumUser=") + toString(aF))) | |
234 | 236 | } | |
235 | 237 | ||
236 | 238 | ||
237 | - | func | |
238 | - | let | |
239 | - | let | |
240 | - | [IntegerEntry( | |
239 | + | func bf (E,bg) = { | |
240 | + | let bh = H(E) | |
241 | + | let bi = N(bh, 0) | |
242 | + | [IntegerEntry(bh, (bi + bg))] | |
241 | 243 | } | |
242 | 244 | ||
243 | 245 | ||
244 | - | @Callable( | |
245 | - | func constructor ( | |
246 | + | @Callable(bj) | |
247 | + | func constructor (bk,bl,bm,bn,bo) = if ((bj.caller != this)) | |
246 | 248 | then throw("Permission denied") | |
247 | - | else [ | |
249 | + | else [StringEntry(l(), bk), StringEntry(m(), bl), IntegerEntry(n(), bm), IntegerEntry(o(), bn), StringEntry(z(), bo)] | |
248 | 250 | ||
249 | 251 | ||
250 | 252 | ||
251 | - | @Callable( | |
253 | + | @Callable(bj) | |
252 | 254 | func stake () = { | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | if ((size( | |
255 | + | let bp = av() | |
256 | + | let bq = bp._1 | |
257 | + | let br = bp._2 | |
258 | + | let bm = bp._3 | |
259 | + | let bn = bp._4 | |
260 | + | if ((size(bj.payments) != 1)) | |
259 | 261 | then throw("Invalid payments size") | |
260 | 262 | else { | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | if (( | |
266 | - | then throw( | |
263 | + | let bs = bj.payments[0] | |
264 | + | let at = bs.amount | |
265 | + | let bt = (("Invalid asset. " + toBase58String(br)) + " is expected") | |
266 | + | let aD = valueOrErrorMessage(bs.assetId, bt) | |
267 | + | if ((aD != br)) | |
268 | + | then throw(bt) | |
267 | 269 | else { | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | then | |
276 | - | else ( | |
277 | - | let | |
270 | + | let q = bj.caller | |
271 | + | let bu = toString(bj.caller) | |
272 | + | let bv = valueOrElse(ay(q), $Tuple3(true, 0, -1)) | |
273 | + | let aO = bv._1 | |
274 | + | let bw = bv._2 | |
275 | + | let bx = bv._3 | |
276 | + | let by = if (aO) | |
277 | + | then at | |
278 | + | else (at + bw) | |
279 | + | let bz = if (aO) | |
278 | 280 | then height | |
279 | 281 | else { | |
280 | - | let | |
281 | - | | |
282 | + | let bA = addressFromStringValue(R(m())) | |
283 | + | W(invoke(bA, "mergeStakesREADONLY", [at, height, bw, bx, bn], nil)) | |
282 | 284 | } | |
283 | - | if (( | |
284 | - | then throw(("Min lock amount is " + toString( | |
285 | + | if ((bm > by)) | |
286 | + | then throw(("Min lock amount is " + toString(bm))) | |
285 | 287 | else { | |
286 | - | let | |
288 | + | let bB = ak(at, 1, if (aO) | |
287 | 289 | then 1 | |
288 | 290 | else 0) | |
289 | - | let | |
290 | - | let | |
291 | - | let | |
292 | - | ((([ | |
291 | + | let bC = bB._1 | |
292 | + | let bD = bB._2 | |
293 | + | let bE = bB._3 | |
294 | + | ((([ai("stake", q, bj.transactionId, bw, bx, by, bz)] ++ aN(aO, bu, bw)) ++ as(q, by, bz)) ++ bC) | |
293 | 295 | } | |
294 | 296 | } | |
295 | 297 | } | |
296 | 298 | } | |
297 | 299 | ||
298 | 300 | ||
299 | 301 | ||
300 | - | @Callable( | |
301 | - | func unstake ( | |
302 | + | @Callable(bj) | |
303 | + | func unstake (at) = if ((size(bj.payments) != 0)) | |
302 | 304 | then throw("unstake doesn't require any payment") | |
303 | 305 | else { | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | let | |
313 | - | let | |
314 | - | let | |
315 | - | if ((0 >= | |
306 | + | let q = bj.caller | |
307 | + | let bu = toString(q) | |
308 | + | let bF = av() | |
309 | + | let bG = bF._1 | |
310 | + | let br = bF._2 | |
311 | + | let bm = bF._3 | |
312 | + | let bn = bF._4 | |
313 | + | let bH = az(q) | |
314 | + | let aO = bH._1 | |
315 | + | let bw = bH._2 | |
316 | + | let bI = bH._3 | |
317 | + | if ((0 >= bw)) | |
316 | 318 | then throw("Nothing to unstake") | |
317 | - | else if (( | |
318 | - | then throw(((("Requested " + toString( | |
319 | + | else if ((at > bw)) | |
320 | + | then throw(((("Requested " + toString(at)) + ", but staked only ") + toString(bw))) | |
319 | 321 | else { | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
322 | + | let bA = addressFromStringValue(R(m())) | |
323 | + | let bJ = W(invoke(bA, "getUnstakeComissionAmountREADONLY", [at, bI, bn], nil)) | |
324 | + | let bK = ak(-(at), if ((at == bw)) | |
323 | 325 | then -1 | |
324 | - | else 0, if (( | |
326 | + | else 0, if ((at == bw)) | |
325 | 327 | then -1 | |
326 | 328 | else 0) | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | ((([ScriptTransfer( | |
329 | + | let bC = bK._1 | |
330 | + | let bD = bK._2 | |
331 | + | let bE = bK._3 | |
332 | + | ((([ScriptTransfer(q, (at - bJ), br), ScriptTransfer(Address(bG), bJ, br), ai("unstake", q, bj.transactionId, bw, bI, (bw - at), bI)] ++ aN(false, bu, bw)) ++ as(q, (bw - at), bI)) ++ bC) | |
331 | 333 | } | |
332 | 334 | } | |
333 | 335 | ||
334 | 336 | ||
335 | 337 | ||
336 | - | @Callable( | |
337 | - | func deposit () = if ((size( | |
338 | + | @Callable(bj) | |
339 | + | func deposit () = if ((size(bj.payments) != 1)) | |
338 | 340 | then throw("exact 1 payment is allowed only") | |
339 | 341 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | then | |
346 | - | else | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | if ((0 > | |
342 | + | let bL = bj.payments[0] | |
343 | + | let at = bL.amount | |
344 | + | let bM = valueOrElse(bL.assetId, i) | |
345 | + | let bN = toBase58String(bM) | |
346 | + | let bO = if ((bM == i)) | |
347 | + | then f | |
348 | + | else e | |
349 | + | let bP = toBigInt(at) | |
350 | + | let bD = N(v(), 0) | |
351 | + | let bQ = toBigInt(bD) | |
352 | + | if ((0 > bD)) | |
351 | 353 | then throw("TODO: case is not supported") | |
352 | - | else if (( | |
353 | - | then | |
354 | + | else if ((bD == 0)) | |
355 | + | then bf(bN, at) | |
354 | 356 | else { | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | if (!(contains( | |
360 | - | then throw((( | |
357 | + | let bR = fraction(bP, g, bQ) | |
358 | + | let bS = A() | |
359 | + | let aG = N(bS, -1) | |
360 | + | let bT = (aG + 1) | |
361 | + | if (!(contains(aA, bN))) | |
362 | + | then throw(((aA + " doesn't contain ") + bN)) | |
361 | 363 | else { | |
362 | - | func | |
363 | - | let | |
364 | - | let | |
365 | - | ( | |
366 | - | then StringEntry( | |
367 | - | else StringEntry( | |
364 | + | func bU (aS,bV) = { | |
365 | + | let bW = C(bT, bV) | |
366 | + | let bX = Q(C(aG, bV), "0") | |
367 | + | (aS :+ (if ((bV == bN)) | |
368 | + | then StringEntry(bW, toString((parseBigIntValue(bX) + bR))) | |
369 | + | else StringEntry(bW, bX))) | |
368 | 370 | } | |
369 | 371 | ||
370 | 372 | ({ | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | func | |
375 | - | then | |
376 | - | else | |
373 | + | let aY = aB | |
374 | + | let aZ = size(aY) | |
375 | + | let ba = nil | |
376 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
377 | + | then bc | |
378 | + | else bU(bc, aY[bd]) | |
377 | 379 | ||
378 | - | func | |
379 | - | then | |
380 | + | func be (bc,bd) = if ((bd >= aZ)) | |
381 | + | then bc | |
380 | 382 | else throw("List size exceeds 10") | |
381 | 383 | ||
382 | - | | |
383 | - | } :+ IntegerEntry( | |
384 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
385 | + | } :+ IntegerEntry(bS, bT)) | |
384 | 386 | } | |
385 | 387 | } | |
386 | 388 | } | |
387 | 389 | ||
388 | 390 | ||
389 | 391 | ||
390 | - | @Callable( | |
392 | + | @Callable(bj) | |
391 | 393 | func claimRewards () = { | |
392 | - | let | |
393 | - | let | |
394 | - | if ((size( | |
394 | + | let q = bj.caller | |
395 | + | let bu = toString(q) | |
396 | + | if ((size(bj.payments) > 0)) | |
395 | 397 | then throw("payments are not accepted") | |
396 | 398 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | func | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | if ((0 >= | |
418 | - | then $Tuple2( | |
419 | - | else $Tuple2(((( | |
399 | + | let bY = valueOrElse(ay(q), $Tuple3(true, 0, 0)) | |
400 | + | let aO = bY._1 | |
401 | + | let aP = bY._2 | |
402 | + | let bZ = bY._3 | |
403 | + | let aE = toBigInt(aP) | |
404 | + | let aQ = B(bu) | |
405 | + | let aF = N(aQ, -1) | |
406 | + | let aG = N(A(), -1) | |
407 | + | func ca (aS,aT) = { | |
408 | + | let cb = aC(bu, aT, aE, aF, aG) | |
409 | + | let aV = cb._1 | |
410 | + | let aW = cb._2 | |
411 | + | let aX = cb._3 | |
412 | + | let aL = cb._4 | |
413 | + | let cc = G(bu, aT) | |
414 | + | let cd = aS | |
415 | + | let ce = cd._1 | |
416 | + | let cf = cd._2 | |
417 | + | let cg = makeString([aT, toString(aV)], ":") | |
418 | + | let ch = makeString([cf, cg], "_") | |
419 | + | if ((0 >= aV)) | |
420 | + | then $Tuple2(ce, ch) | |
421 | + | else $Tuple2((((ce :+ ScriptTransfer(q, aV, U(aT))) :+ IntegerEntry(cc, (valueOrElse(getInteger(cc), 0) + aV))) :+ IntegerEntry(aL, 0)), ch) | |
420 | 422 | } | |
421 | 423 | ||
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | func | |
427 | - | then | |
428 | - | else | |
424 | + | let ci = { | |
425 | + | let aY = aB | |
426 | + | let aZ = size(aY) | |
427 | + | let ba = $Tuple2(nil, "") | |
428 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
429 | + | then bc | |
430 | + | else ca(bc, aY[bd]) | |
429 | 431 | ||
430 | - | func | |
431 | - | then | |
432 | + | func be (bc,bd) = if ((bd >= aZ)) | |
433 | + | then bc | |
432 | 434 | else throw("List size exceeds 10") | |
433 | 435 | ||
434 | - | | |
436 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
435 | 437 | } | |
436 | - | let | |
437 | - | let | |
438 | - | if ((0 >= size( | |
438 | + | let cj = ci._1 | |
439 | + | let ck = ci._2 | |
440 | + | if ((0 >= size(cj))) | |
439 | 441 | then throw("nothing to claim") | |
440 | - | else (( | |
442 | + | else ((cj :+ IntegerEntry(aQ, aG)) :+ aj(q, bj.transactionId, drop(ck, 1))) | |
441 | 443 | } | |
442 | 444 | } | |
443 | 445 | ||
444 | 446 | ||
445 | 447 | ||
446 | - | @Callable( | |
447 | - | func unclaimedRewardsREADONLY ( | |
448 | - | func | |
448 | + | @Callable(bj) | |
449 | + | func unclaimedRewardsREADONLY (bu) = { | |
450 | + | func cl (aS,aT) = ((aS + makeString([aT, "0", "0"], ":")) + "_") | |
449 | 451 | ||
450 | - | let | |
452 | + | let cm = if ((bu == "")) | |
451 | 453 | then { | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | func | |
456 | - | then | |
457 | - | else | |
454 | + | let aY = aB | |
455 | + | let aZ = size(aY) | |
456 | + | let ba = "" | |
457 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
458 | + | then bc | |
459 | + | else cl(bc, aY[bd]) | |
458 | 460 | ||
459 | - | func | |
460 | - | then | |
461 | + | func be (bc,bd) = if ((bd >= aZ)) | |
462 | + | then bc | |
461 | 463 | else throw("List size exceeds 10") | |
462 | 464 | ||
463 | - | | |
465 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
464 | 466 | } | |
465 | 467 | else { | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | func | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | (( | |
468 | + | let q = addressFromStringValue(bu) | |
469 | + | let cn = valueOrElse(ay(q), $Tuple3(true, 0, 0)) | |
470 | + | let aO = cn._1 | |
471 | + | let aP = cn._2 | |
472 | + | let bZ = cn._3 | |
473 | + | let aE = toBigInt(aP) | |
474 | + | let aQ = B(bu) | |
475 | + | let aF = N(aQ, -1) | |
476 | + | let aG = N(A(), -1) | |
477 | + | func ca (aS,aT) = { | |
478 | + | let co = aC(bu, aT, aE, aF, aG) | |
479 | + | let aV = co._1 | |
480 | + | let aW = co._2 | |
481 | + | let aX = co._3 | |
482 | + | let aL = co._4 | |
483 | + | let cp = valueOrElse(getInteger(G(bu, aT)), 0) | |
484 | + | ((aS + makeString([aT, "10", "10"], ":")) + "_") | |
483 | 485 | } | |
484 | 486 | ||
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | func | |
489 | - | then | |
490 | - | else | |
487 | + | let aY = aB | |
488 | + | let aZ = size(aY) | |
489 | + | let ba = "" | |
490 | + | func bb (bc,bd) = if ((bd >= aZ)) | |
491 | + | then bc | |
492 | + | else ca(bc, aY[bd]) | |
491 | 493 | ||
492 | - | func | |
493 | - | then | |
494 | + | func be (bc,bd) = if ((bd >= aZ)) | |
495 | + | then bc | |
494 | 496 | else throw("List size exceeds 10") | |
495 | 497 | ||
496 | - | | |
498 | + | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
497 | 499 | } | |
498 | - | $Tuple2(nil, dropRight( | |
500 | + | $Tuple2(nil, dropRight(cm, 1)) | |
499 | 501 | } | |
500 | 502 | ||
501 | 503 | ||
502 | 504 | ||
503 | - | @Callable( | |
504 | - | func nsbtStakingSYSREADONLY ( | |
505 | - | let | |
506 | - | if (( | |
507 | - | then $Tuple2(nil, [0, | |
505 | + | @Callable(bj) | |
506 | + | func nsbtStakingSYSREADONLY (bu) = { | |
507 | + | let cq = N(v(), 0) | |
508 | + | if ((bu == "")) | |
509 | + | then $Tuple2(nil, [0, cq, 0]) | |
508 | 510 | else { | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | $Tuple2(nil, [ | |
511 | + | let q = S(bu) | |
512 | + | let cr = valueOrElse(ay(q), $Tuple3(true, 0, 0)) | |
513 | + | let aO = cr._1 | |
514 | + | let cs = cr._2 | |
515 | + | let bZ = cr._3 | |
516 | + | $Tuple2(nil, [cs, cq, bZ]) | |
515 | 517 | } | |
516 | 518 | } | |
517 | 519 | ||
518 | 520 |
github/deemru/w8io/169f3d6 301.65 ms ◑