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