tx · GAEfnfzGb8LnZGHuCjgmSrJoWtxRTdCANfy47j399rvb 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02300000 Waves 2022.12.27 12:18 [2378492] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "GAEfnfzGb8LnZGHuCjgmSrJoWtxRTdCANfy47j399rvb", "fee": 2300000, "feeAssetId": null, "timestamp": 1672132703445, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "1vnqP3f6RW32GUQ21rLUcVzsYyN3LrSw3VQzwTAk3euy6HCqMQ73BZGsogPBW38td7xmaM59SUYP7hHzG4zrqJL" ], "script": "base64:BgKQJggCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgASAwoBCBIAIgNTRVAiBlNDQUxFOCIFTVVMVDgiDlBPT0xXRUlHSFRNVUxUIgRzdHJmIgdhZGRyZXNzIgNrZXkiA2lveiIDaW9kIgpkZWZhdWx0VmFsIgNpb2YiA2FicyIDdmFsIgNhYWwiByRtYXRjaDAiCnZhbEFueUx5c3QiAmFpIgZ2YWxJbnQiG2tleVJlZmVycmFsc0NvbnRyYWN0QWRkcmVzcyIecmVmZXJyYWxzQ29udHJhY3RBZGRyZXNzT3JGYWlsIhZrZXlSZWZlcnJhbFByb2dyYW1OYW1lIhpyZWZlcnJhbFByb2dyYW1OYW1lRGVmYXVsdCITcmVmZXJyYWxQcm9ncmFtTmFtZSIRa2V5RmFjdG9yeUFkZHJlc3MiGElkeEZhY3RvcnlDZmdTdGFraW5nRGFwcCIZSWR4RmFjdG9yeUNmZ0Jvb3N0aW5nRGFwcCIUSWR4RmFjdG9yeUNmZ0lkb0RhcHAiFUlkeEZhY3RvcnlDZmd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DCQAAAgUCZW8FAmVvCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQJhZAAFAmVuBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4CYUQBDmNvbmZpcm1NYW5hZ2VyAAQCZXAJAQJhQgAEAmVxAwkBCWlzRGVmaW5lZAEFAmVwBgkAAgECEk5vIHBlbmRpbmcgbWFuYWdlcgMJAAACBQJlcQUCZXEEAmVyAwkAAAIIBQJhRA9jYWxsZXJQdWJsaWNLZXkJAQV2YWx1ZQEFAmVwBgkAAgECG1lvdSBhcmUgbm90IHBlbmRpbmcgbWFuYWdlcgMJAAACBQJlcgUCZXIJAMwIAgkBC1N0cmluZ0VudHJ5AgkBAmFjAAkA2AQBCQEFdmFsdWUBBQJlcAkAzAgCCQELRGVsZXRlRW50cnkBCQECYWQABQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmVzAQJldAAEAmV1BAFvCQECYXoAAwkAAQIFAW8CCkJ5dGVWZWN0b3IEAmFGBQFvBQJhRgMJAAECBQFvAgRVbml0CAUCZXMPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmVzCWJvZHlCeXRlcwkAkQMCCAUCZXMGcHJvb2ZzAAAFAmV1oPQWCg==", "chainId": 84, "height": 2378492, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BRm8bE6438nAGhZAQ9FmCE6t2bXYfQXTVxQsvkpZsFQu Next: 57EX13CSbTqv14STGS69HCiwQK44VKFsQyShHomEbMjp Diff:
Old | New | Differences | |
---|---|---|---|
735 | 735 | ||
736 | 736 | ||
737 | 737 | @Callable(aD) | |
738 | + | func userMaxDurationREADONLY (cF) = { | |
739 | + | let dA = ar() | |
740 | + | let ax = parseIntValue(dA[ao]) | |
741 | + | let el = getString(this, aM(cF)) | |
742 | + | if ((el == unit)) | |
743 | + | then $Tuple2(nil, $Tuple2("lock", ax)) | |
744 | + | else { | |
745 | + | let cI = split(value(el), a) | |
746 | + | let bP = parseIntValue(cI[aI]) | |
747 | + | let dY = parseIntValue(cI[aJ]) | |
748 | + | let dZ = (bP + dY) | |
749 | + | let ea = max([(dZ - height), 0]) | |
750 | + | let em = (ax - ea) | |
751 | + | $Tuple2(nil, $Tuple2("increaseLock", em)) | |
752 | + | } | |
753 | + | } | |
754 | + | ||
755 | + | ||
756 | + | ||
757 | + | @Callable(aD) | |
738 | 758 | func getUserGwxAmountAtHeightREADONLY (aN,cy) = { | |
739 | 759 | let aX = cx(aN, cy) | |
740 | 760 | $Tuple2(nil, aX) | |
748 | 768 | ||
749 | 769 | ||
750 | 770 | @Callable(aD) | |
751 | - | func setManager ( | |
771 | + | func setManager (en) = { | |
752 | 772 | let dN = aC(aD) | |
753 | 773 | if ((dN == dN)) | |
754 | 774 | then { | |
755 | - | let | |
756 | - | if (( | |
757 | - | then [StringEntry(ad(), | |
775 | + | let eo = fromBase58String(en) | |
776 | + | if ((eo == eo)) | |
777 | + | then [StringEntry(ad(), en)] | |
758 | 778 | else throw("Strict value is not equal to itself.") | |
759 | 779 | } | |
760 | 780 | else throw("Strict value is not equal to itself.") | |
764 | 784 | ||
765 | 785 | @Callable(aD) | |
766 | 786 | func confirmManager () = { | |
767 | - | let | |
768 | - | let | |
787 | + | let ep = aB() | |
788 | + | let eq = if (isDefined(ep)) | |
769 | 789 | then true | |
770 | 790 | else throw("No pending manager") | |
771 | - | if (( | |
791 | + | if ((eq == eq)) | |
772 | 792 | then { | |
773 | - | let | |
793 | + | let er = if ((aD.callerPublicKey == value(ep))) | |
774 | 794 | then true | |
775 | 795 | else throw("You are not pending manager") | |
776 | - | if (( | |
777 | - | then [StringEntry(ac(), toBase58String(value( | |
796 | + | if ((er == er)) | |
797 | + | then [StringEntry(ac(), toBase58String(value(ep))), DeleteEntry(ad())] | |
778 | 798 | else throw("Strict value is not equal to itself.") | |
779 | 799 | } | |
780 | 800 | else throw("Strict value is not equal to itself.") | |
781 | 801 | } | |
782 | 802 | ||
783 | 803 | ||
784 | - | @Verifier( | |
785 | - | func | |
786 | - | let | |
804 | + | @Verifier(es) | |
805 | + | func et () = { | |
806 | + | let eu = { | |
787 | 807 | let o = az() | |
788 | 808 | if ($isInstanceOf(o, "ByteVector")) | |
789 | 809 | then { | |
791 | 811 | aF | |
792 | 812 | } | |
793 | 813 | else if ($isInstanceOf(o, "Unit")) | |
794 | - | then | |
814 | + | then es.senderPublicKey | |
795 | 815 | else throw("Match error") | |
796 | 816 | } | |
797 | - | sigVerify( | |
817 | + | sigVerify(es.bodyBytes, es.proofs[0], eu) | |
798 | 818 | } | |
799 | 819 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | func e (f,g) = valueOrErrorMessage(getString(f, g), (("mandatory this." + g) + " is not defined")) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func h (f,g) = valueOrElse(getInteger(f, g), 0) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func i (f,g,j) = valueOrElse(getInteger(f, g), j) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (f,g) = valueOrErrorMessage(getInteger(f, g), (("mandatory this." + g) + " is not defined")) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func l (m) = if ((0 > m)) | |
25 | 25 | then -(m) | |
26 | 26 | else m | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (m) = { | |
30 | 30 | let o = m | |
31 | 31 | if ($isInstanceOf(o, "List[Any]")) | |
32 | 32 | then { | |
33 | 33 | let p = o | |
34 | 34 | p | |
35 | 35 | } | |
36 | 36 | else throw("fail to cast into List[Any]") | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (m) = { | |
41 | 41 | let o = m | |
42 | 42 | if ($isInstanceOf(o, "Int")) | |
43 | 43 | then { | |
44 | 44 | let r = o | |
45 | 45 | r | |
46 | 46 | } | |
47 | 47 | else throw("fail to cast into Int") | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let t = addressFromStringValue(e(this, s())) | |
55 | 55 | ||
56 | 56 | let u = makeString(["%s%s", "referral", "programName"], a) | |
57 | 57 | ||
58 | 58 | let v = "wxlock" | |
59 | 59 | ||
60 | 60 | let w = valueOrElse(getString(this, u), v) | |
61 | 61 | ||
62 | 62 | func x () = "%s%s__config__factoryAddress" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let y = 1 | |
66 | 66 | ||
67 | 67 | let z = 2 | |
68 | 68 | ||
69 | 69 | let A = 3 | |
70 | 70 | ||
71 | 71 | let B = 4 | |
72 | 72 | ||
73 | 73 | let C = 5 | |
74 | 74 | ||
75 | 75 | let D = 6 | |
76 | 76 | ||
77 | 77 | let E = 7 | |
78 | 78 | ||
79 | 79 | let F = 8 | |
80 | 80 | ||
81 | 81 | let G = 9 | |
82 | 82 | ||
83 | 83 | let H = 10 | |
84 | 84 | ||
85 | 85 | let I = 11 | |
86 | 86 | ||
87 | 87 | func J () = "%s__factoryConfig" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func K (L) = makeString(["%s%s%s", L, "mappings__lpAsset2PoolContract"], a) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func M () = "%s__lpTokensList" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (L) = makeString(["%s%s%s", L, "mappings__lpAsset2PoolContract"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func O (P) = makeString(["%s%s", "poolWeight", P], a) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Q (R,S) = ((("%s%s__poolWeight__" + R) + "__") + toString(S)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func T () = addressFromStringValue(e(this, x())) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func U () = split(valueOrElse(getString(T(), M()), ""), a) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func V (W) = split(e(W, J()), a) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X (Y) = addressFromStringValue(Y[z]) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Z (Y) = addressFromStringValue(Y[C]) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aa (Y) = addressFromStringValue(Y[y]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ab (Y) = addressFromStringValue(Y[H]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ac () = "%s__managerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ad () = "%s__pendingManagerPublicKey" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ae () = "%s%s__ratePerBlock__current" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func af () = "%s%s__ratePerBlockMax__current" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ag () = "%s%s__emission__startBlock" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ah () = "%s%s__emission__duration" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ai () = "%s%s__emission__endBlock" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func aj () = "%s__nextPeriod" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ak () = "%s%s__gwxRewardEmissionPart__startHeight" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | let al = 1 | |
154 | 154 | ||
155 | 155 | let am = 2 | |
156 | 156 | ||
157 | 157 | let an = 3 | |
158 | 158 | ||
159 | 159 | let ao = 4 | |
160 | 160 | ||
161 | 161 | let ap = 5 | |
162 | 162 | ||
163 | 163 | func aq () = "%s__config" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ar () = split(e(this, aq()), a) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let as = addressFromStringValue(ar()[ap]) | |
170 | 170 | ||
171 | 171 | func at (au,av,aw,ax,as) = makeString(["%s%d%d%d", au, av, aw, ax, as], a) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ay (au,av,aw,ax,as) = at(au, toString(av), toString(aw), toString(ax), as) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func az () = { | |
178 | 178 | let o = getString(ac()) | |
179 | 179 | if ($isInstanceOf(o, "String")) | |
180 | 180 | then { | |
181 | 181 | let aA = o | |
182 | 182 | fromBase58String(aA) | |
183 | 183 | } | |
184 | 184 | else if ($isInstanceOf(o, "Unit")) | |
185 | 185 | then unit | |
186 | 186 | else throw("Match error") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aB () = { | |
191 | 191 | let o = getString(ad()) | |
192 | 192 | if ($isInstanceOf(o, "String")) | |
193 | 193 | then { | |
194 | 194 | let aA = o | |
195 | 195 | fromBase58String(aA) | |
196 | 196 | } | |
197 | 197 | else if ($isInstanceOf(o, "Unit")) | |
198 | 198 | then unit | |
199 | 199 | else throw("Match error") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func aC (aD) = { | |
204 | 204 | let aE = throw("Permission denied") | |
205 | 205 | let o = az() | |
206 | 206 | if ($isInstanceOf(o, "ByteVector")) | |
207 | 207 | then { | |
208 | 208 | let aF = o | |
209 | 209 | if ((aD.callerPublicKey == aF)) | |
210 | 210 | then true | |
211 | 211 | else aE | |
212 | 212 | } | |
213 | 213 | else if ($isInstanceOf(o, "Unit")) | |
214 | 214 | then if ((aD.caller == this)) | |
215 | 215 | then true | |
216 | 216 | else aE | |
217 | 217 | else throw("Match error") | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | let aG = 1 | |
222 | 222 | ||
223 | 223 | let aH = 2 | |
224 | 224 | ||
225 | 225 | let aI = 3 | |
226 | 226 | ||
227 | 227 | let aJ = 4 | |
228 | 228 | ||
229 | 229 | let aK = 5 | |
230 | 230 | ||
231 | 231 | let aL = 6 | |
232 | 232 | ||
233 | 233 | func aM (aN) = makeString(["%s%s__lock", aN], a) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aO (aN) = split(e(this, aM(aN)), a) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aP (aQ,aR,aS,aT,aU,aV,aW,aX) = makeString(["%d%d%d%d%d%d%d%d", aQ, aR, aS, aT, aU, aV, aW, aX], a) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aY (aQ,aR,aS,aT,aU,aV,aX) = aP(aQ, toString(aR), toString(aS), toString(aT), toString(aU), toString(aV), toString(lastBlock.timestamp), toString(aX)) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func aZ () = "%s__nextUserNum" | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func ba (aN) = makeString(["%s%s%s__mapping__user2num", aN], a) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func bb (S) = makeString(["%s%s%s__mapping__num2user", S], a) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bc (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "amount"], a) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func bd (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "start"], a) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func be (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "duration"], a) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bf (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "k"], a) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bg (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "b"], a) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bh (aQ,bi) = makeString(["%s%d%s%d__paramByPeriod", aQ, "k", bi], a) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bj (aQ,bi) = makeString(["%s%d%s%d__paramByPeriod", aQ, "b", bi], a) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bk () = "%s%s__stats__activeTotalLocked" | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bl () = "%s%s__stats__locksDurationSumInBlocks" | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bm () = "%s%s__stats__locksCount" | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bn () = "%s%s__stats__activeUsersCount" | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bo (aQ) = makeString(["%s%d__userBoostEmissionLastInt", aQ], a) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bp (aQ,bq) = makeString(["%s%d__userBoostEmissionLastInt", aQ, bq], a) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func br (aQ) = makeString(["%s%d__maxBoostInt", aQ], a) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bs () = "%s%s__maxBoostInt__total" | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func bt (aQ) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aQ], a) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func bu (aQ) = makeString(["%s%d__userBoostClaimed", aQ], a) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func bv () = "%s%s__gwxCached__total" | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func bw () = "%s__gwxCachedTotalCorrective" | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | let bx = T() | |
312 | 312 | ||
313 | 313 | let Y = V(bx) | |
314 | 314 | ||
315 | 315 | let by = Z(Y) | |
316 | 316 | ||
317 | 317 | let bz = aa(Y) | |
318 | 318 | ||
319 | 319 | let bA = ab(Y) | |
320 | 320 | ||
321 | 321 | func bB (bC) = { | |
322 | 322 | let bD = makeString(["%s", "votingEmissionContract"], a) | |
323 | 323 | let bE = addressFromStringValue(getStringValue(bx, bD)) | |
324 | 324 | let bF = makeString(["%s", "currentEpochUi"], a) | |
325 | 325 | let bG = getIntegerValue(bE, bF) | |
326 | 326 | let bH = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
327 | 327 | let bI = getInteger(this, bH) | |
328 | 328 | let bJ = valueOrElse(getInteger(this, bv()), 0) | |
329 | 329 | let bK = if (isDefined(bI)) | |
330 | 330 | then (bG >= value(bI)) | |
331 | 331 | else false | |
332 | 332 | let bL = if (if (bK) | |
333 | 333 | then bC | |
334 | 334 | else false) | |
335 | 335 | then valueOrElse(getInteger(this, bw()), 0) | |
336 | 336 | else 0 | |
337 | 337 | max([0, (bJ + bL)]) | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func bM (bN,bO,aR,bP,aT,bQ,bR,aD) = { | |
342 | 342 | let bS = makeString(["%s%s%s%s__history", bN, bO, toBase58String(aD.transactionId)], a) | |
343 | 343 | let bT = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aR), toString(bP), toString(aT), toString(bQ), toString(bR)], a) | |
344 | 344 | StringEntry(bS, bT) | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | func bU (bV,bW,bX,bY) = { | |
349 | 349 | let bZ = bl() | |
350 | 350 | let ca = bm() | |
351 | 351 | let cb = bn() | |
352 | 352 | let cc = bk() | |
353 | 353 | let cd = h(this, bZ) | |
354 | 354 | let ce = h(this, ca) | |
355 | 355 | let cf = h(this, cb) | |
356 | 356 | let cg = h(this, cc) | |
357 | 357 | [IntegerEntry(bZ, (cd + bW)), IntegerEntry(ca, (ce + bX)), IntegerEntry(cb, (cf + bY)), IntegerEntry(cc, (cg + bV))] | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func ch (ci,cj,ck) = { | |
362 | 362 | let cl = 1000 | |
363 | 363 | (((ci * ck) + cj) / cl) | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | func cm (aN,aQ,aR,aS,aT,bQ,bR,bi) = { | |
368 | 368 | let cn = bc(aQ) | |
369 | 369 | let co = bd(aQ) | |
370 | 370 | let cp = be(aQ) | |
371 | 371 | let cq = bf(aQ) | |
372 | 372 | let cr = bg(aQ) | |
373 | 373 | let cs = bh(aQ, bi) | |
374 | 374 | let ct = bj(aQ, bi) | |
375 | 375 | let aX = ch(bQ, bR, height) | |
376 | 376 | [IntegerEntry(cn, aR), IntegerEntry(co, aS), IntegerEntry(cp, aT), IntegerEntry(cq, bQ), IntegerEntry(cr, bR), IntegerEntry(cs, bQ), IntegerEntry(ct, bR), StringEntry(aM(aN), aY(aQ, aR, aS, aT, bQ, bR, aX))] | |
377 | 377 | } | |
378 | 378 | ||
379 | 379 | ||
380 | 380 | func cu (aD,cv) = if ((size(aD.payments) > 1)) | |
381 | 381 | then throw("only one payment is allowed") | |
382 | 382 | else if ((size(aD.payments) == 0)) | |
383 | 383 | then 0 | |
384 | 384 | else { | |
385 | 385 | let cw = aD.payments[0] | |
386 | 386 | if ((value(cw.assetId) != cv)) | |
387 | 387 | then throw("invalid asset id in payment") | |
388 | 388 | else cw.amount | |
389 | 389 | } | |
390 | 390 | ||
391 | 391 | ||
392 | 392 | func cx (aN,cy) = { | |
393 | 393 | let cz = "empty" | |
394 | 394 | let cA = ba(aN) | |
395 | 395 | let aQ = valueOrElse(getString(cA), cz) | |
396 | 396 | let bQ = valueOrElse(getInteger(bf(aQ)), 0) | |
397 | 397 | let bR = valueOrElse(getInteger(bg(aQ)), 0) | |
398 | 398 | let cB = ch(bQ, bR, cy) | |
399 | 399 | let aX = if ((0 > cB)) | |
400 | 400 | then 0 | |
401 | 401 | else cB | |
402 | 402 | aX | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | func cC (aN) = cx(aN, height) | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func cD (cE,cF,cG) = { | |
410 | 410 | let cz = "EMPTY" | |
411 | 411 | let cH = valueOrElse(getString(this, aM(cF)), cz) | |
412 | 412 | if ((cH == cz)) | |
413 | 413 | then $Tuple3(0, nil, "userRecord::is::empty") | |
414 | 414 | else { | |
415 | 415 | let cI = split(cH, a) | |
416 | 416 | let cJ = cI[aG] | |
417 | 417 | let cK = valueOrElse(getInteger(bA, ak()), 0) | |
418 | 418 | let cL = "empty" | |
419 | 419 | let cM = if ((cE != cL)) | |
420 | 420 | then { | |
421 | 421 | let cN = valueOrErrorMessage(getString(bx, K(cE)), ("unsupported lp asset " + cE)) | |
422 | 422 | let cO = getIntegerValue(bx, O(cN)) | |
423 | 423 | let cP = valueOrElse(getInteger(bx, Q(cN, 0)), cO) | |
424 | 424 | $Tuple2(cP, cO) | |
425 | 425 | } | |
426 | 426 | else if (cG) | |
427 | 427 | then $Tuple2(0, 0) | |
428 | 428 | else throw(("not readonly mode: unsupported lp asset " + cE)) | |
429 | 429 | let cQ = cM._1 | |
430 | 430 | let cR = cM._2 | |
431 | 431 | let cS = k(by, ae()) | |
432 | 432 | let cT = k(by, ag()) | |
433 | 433 | let cU = k(by, ai()) | |
434 | 434 | let ck = if ((height > cU)) | |
435 | 435 | then cU | |
436 | 436 | else height | |
437 | 437 | let cV = max([(ck - cT), 0]) | |
438 | 438 | let cW = bp(cJ, cE) | |
439 | 439 | let cX = bo(cJ) | |
440 | 440 | let cY = valueOrElse(getInteger(this, cW), h(this, cX)) | |
441 | 441 | let cZ = (((cS * cV) * 2) / 3) | |
442 | 442 | let da = (cZ - cY) | |
443 | 443 | let db = fraction(da, 3, (2 * cS)) | |
444 | 444 | let dc = (ck - db) | |
445 | 445 | let dd = max([(cK - dc), 0]) | |
446 | 446 | let de = ((ck - dc) - dd) | |
447 | 447 | if (if (if ((0 > dc)) | |
448 | 448 | then true | |
449 | 449 | else (0 > de)) | |
450 | 450 | then true | |
451 | 451 | else (l(((dd + de) - db)) >= 1)) | |
452 | 452 | then throw(((((((("invalid udh calc: udh=" + toString(db)) + " uLastH=") + toString(dc)) + " udh0=") + toString(dd)) + " udh1=") + toString(de))) | |
453 | 453 | else if ((0 > da)) | |
454 | 454 | then throw("wrong calculations") | |
455 | 455 | else { | |
456 | 456 | let df = br(cJ) | |
457 | 457 | let dg = bs() | |
458 | 458 | let dh = h(this, df) | |
459 | 459 | let di = h(this, dg) | |
460 | 460 | let dj = bB(true) | |
461 | 461 | let dk = cC(cF) | |
462 | 462 | let dl = bt(cJ) | |
463 | 463 | let dm = h(this, dl) | |
464 | 464 | let dn = if ((db == 0)) | |
465 | 465 | then 0 | |
466 | 466 | else fraction(da, dd, db) | |
467 | 467 | let do = if ((db == 0)) | |
468 | 468 | then 0 | |
469 | 469 | else fraction(da, de, db) | |
470 | 470 | let dp = fraction(dn, cQ, d) | |
471 | 471 | let dq = fraction(do, cR, d) | |
472 | 472 | let dr = if ((dj == 0)) | |
473 | 473 | then 0 | |
474 | 474 | else fraction(dp, dk, dj) | |
475 | 475 | let ds = if ((dj == 0)) | |
476 | 476 | then 0 | |
477 | 477 | else fraction(dq, dk, dj) | |
478 | 478 | let dt = (dr + ds) | |
479 | 479 | let du = bu(cJ) | |
480 | 480 | let dv = h(this, du) | |
481 | 481 | let dw = (dt - dv) | |
482 | 482 | let dx = [IntegerEntry(cW, cZ)] | |
483 | 483 | let dy = makeString([toString(cY), toString(da), toString(dv), toString(dw), toString(cQ), toString(cR), toString(ck), toString(db), toString(dc), toString(dd), toString(de), toString(dk), toString(dj)], ":") | |
484 | 484 | $Tuple3(dt, dx, dy) | |
485 | 485 | } | |
486 | 486 | } | |
487 | 487 | } | |
488 | 488 | ||
489 | 489 | ||
490 | 490 | func dz (aD,aT) = { | |
491 | 491 | let dA = ar() | |
492 | 492 | let dB = dA[al] | |
493 | 493 | let au = fromBase58String(dB) | |
494 | 494 | let av = parseIntValue(dA[am]) | |
495 | 495 | let aw = parseIntValue(dA[an]) | |
496 | 496 | let ax = parseIntValue(dA[ao]) | |
497 | 497 | if ((size(aD.payments) != 1)) | |
498 | 498 | then throw("invalid payment - exact one payment must be attached") | |
499 | 499 | else { | |
500 | 500 | let cw = aD.payments[0] | |
501 | 501 | let dC = cw.amount | |
502 | 502 | if ((au != value(cw.assetId))) | |
503 | 503 | then throw((("invalid asset is in payment - " + dB) + " is expected")) | |
504 | 504 | else { | |
505 | 505 | let dD = aZ() | |
506 | 506 | let cF = toString(aD.caller) | |
507 | 507 | let dE = isDefined(getString(ba(cF))) | |
508 | 508 | let cJ = if (dE) | |
509 | 509 | then value(getString(ba(cF))) | |
510 | 510 | else toString(k(this, dD)) | |
511 | 511 | let aQ = parseIntValue(cJ) | |
512 | 512 | let bP = height | |
513 | 513 | let co = bd(cJ) | |
514 | 514 | let cp = be(cJ) | |
515 | 515 | let cn = bc(cJ) | |
516 | 516 | if ((av > dC)) | |
517 | 517 | then throw(("amount is less then minLockAmount=" + toString(av))) | |
518 | 518 | else if ((aw > aT)) | |
519 | 519 | then throw(("passed duration is less then minLockDuration=" + toString(aw))) | |
520 | 520 | else if ((aT > ax)) | |
521 | 521 | then throw(("passed duration is greater then maxLockDuration=" + toString(ax))) | |
522 | 522 | else if (if (dE) | |
523 | 523 | then ((k(this, co) + k(this, cp)) >= bP) | |
524 | 524 | else false) | |
525 | 525 | then throw("there is an active lock - consider to use increaseLock") | |
526 | 526 | else if ((h(this, cn) > 0)) | |
527 | 527 | then throw(("there are locked WXs - consider to use increaseLock " + cn)) | |
528 | 528 | else { | |
529 | 529 | let dF = fraction(aT, c, ax) | |
530 | 530 | let dG = fraction(dC, dF, c) | |
531 | 531 | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, bP, aT], nil)) | |
532 | 532 | let bQ = q(dH[0]) | |
533 | 533 | let bR = q(dH[1]) | |
534 | 534 | let bi = toString(q(dH[2])) | |
535 | 535 | let cS = k(by, ae()) | |
536 | 536 | let cT = k(by, ag()) | |
537 | 537 | let cU = k(by, ai()) | |
538 | 538 | let ck = if ((height > cU)) | |
539 | 539 | then cU | |
540 | 540 | else height | |
541 | 541 | let cV = max([(ck - cT), 0]) | |
542 | 542 | let cX = bo(cJ) | |
543 | 543 | let cZ = (((cS * cV) * 2) / 3) | |
544 | 544 | let df = br(cJ) | |
545 | 545 | let dg = bs() | |
546 | 546 | let dh = ((dG * aT) / 2) | |
547 | 547 | let di = h(this, dg) | |
548 | 548 | let bJ = bB(false) | |
549 | 549 | let dI = if (dE) | |
550 | 550 | then nil | |
551 | 551 | else [IntegerEntry(dD, (aQ + 1)), StringEntry(ba(cF), cJ), StringEntry(bb(cJ), cF)] | |
552 | 552 | $Tuple2(((((dI ++ cm(cF, cJ, dC, bP, aT, bQ, bR, bi)) ++ bU(dC, aT, 1, if (dE) | |
553 | 553 | then 0 | |
554 | 554 | else 1)) :+ bM("lock", cF, dC, bP, aT, bQ, bR, aD)) ++ [IntegerEntry(cX, cZ), IntegerEntry(bv(), (bJ + dG))]), dG) | |
555 | 555 | } | |
556 | 556 | } | |
557 | 557 | } | |
558 | 558 | } | |
559 | 559 | ||
560 | 560 | ||
561 | 561 | @Callable(aD) | |
562 | 562 | func constructor (dJ,dK,av,dL,dM,as) = { | |
563 | 563 | let dN = aC(aD) | |
564 | 564 | if ((dN == dN)) | |
565 | 565 | then ([IntegerEntry(aZ(), 0), StringEntry(aq(), ay(dK, av, dL, dM, as)), StringEntry(x(), dJ)] ++ bU(0, 0, 0, 0)) | |
566 | 566 | else throw("Strict value is not equal to itself.") | |
567 | 567 | } | |
568 | 568 | ||
569 | 569 | ||
570 | 570 | ||
571 | 571 | @Callable(aD) | |
572 | 572 | func lockRef (aT,dO,dP) = { | |
573 | 573 | let dQ = dz(aD, aT) | |
574 | 574 | let dR = dQ._1 | |
575 | 575 | let dG = dQ._2 | |
576 | 576 | let dS = toString(aD.caller) | |
577 | 577 | let dT = if (if ((dO == "")) | |
578 | 578 | then true | |
579 | 579 | else (dP == base58'')) | |
580 | 580 | then unit | |
581 | 581 | else invoke(t, "createPair", [w, dO, dS, dP], nil) | |
582 | 582 | if ((dT == dT)) | |
583 | 583 | then { | |
584 | 584 | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
585 | 585 | if ((dU == dU)) | |
586 | 586 | then $Tuple2(dR, unit) | |
587 | 587 | else throw("Strict value is not equal to itself.") | |
588 | 588 | } | |
589 | 589 | else throw("Strict value is not equal to itself.") | |
590 | 590 | } | |
591 | 591 | ||
592 | 592 | ||
593 | 593 | ||
594 | 594 | @Callable(aD) | |
595 | 595 | func lock (aT) = { | |
596 | 596 | let dV = dz(aD, aT) | |
597 | 597 | let dR = dV._1 | |
598 | 598 | let dG = dV._2 | |
599 | 599 | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
600 | 600 | if ((dU == dU)) | |
601 | 601 | then $Tuple2(dR, unit) | |
602 | 602 | else throw("Strict value is not equal to itself.") | |
603 | 603 | } | |
604 | 604 | ||
605 | 605 | ||
606 | 606 | ||
607 | 607 | @Callable(aD) | |
608 | 608 | func increaseLock (dW) = { | |
609 | 609 | let dA = ar() | |
610 | 610 | let dB = dA[al] | |
611 | 611 | let au = fromBase58String(dB) | |
612 | 612 | let aw = parseIntValue(dA[an]) | |
613 | 613 | let ax = parseIntValue(dA[ao]) | |
614 | 614 | let dC = cu(aD, au) | |
615 | 615 | let cF = toString(aD.caller) | |
616 | 616 | let cI = aO(cF) | |
617 | 617 | let cJ = cI[aG] | |
618 | 618 | let dX = parseIntValue(cI[aH]) | |
619 | 619 | let bP = parseIntValue(cI[aI]) | |
620 | 620 | let dY = parseIntValue(cI[aJ]) | |
621 | 621 | let dZ = (bP + dY) | |
622 | 622 | let ea = max([(dZ - height), 0]) | |
623 | 623 | let eb = (dX + dC) | |
624 | 624 | let ec = (ea + dW) | |
625 | 625 | if ((0 > dW)) | |
626 | 626 | then throw("duration is less then zero") | |
627 | 627 | else if ((aw > ec)) | |
628 | 628 | then throw(("lockDurationNew is less then minLockDuration=" + toString(aw))) | |
629 | 629 | else if ((ec > ax)) | |
630 | 630 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(ax))) | |
631 | 631 | else { | |
632 | 632 | let dF = fraction(ec, c, ax) | |
633 | 633 | let dG = fraction(eb, dF, c) | |
634 | 634 | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
635 | 635 | if ((dU == dU)) | |
636 | 636 | then { | |
637 | 637 | let ed = height | |
638 | 638 | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, ed, ec], nil)) | |
639 | 639 | let bQ = q(dH[0]) | |
640 | 640 | let bR = q(dH[1]) | |
641 | 641 | let bi = toString(q(dH[2])) | |
642 | 642 | let cS = k(by, ae()) | |
643 | 643 | let cT = k(by, ag()) | |
644 | 644 | let cU = k(by, ai()) | |
645 | 645 | let ck = if ((height > cU)) | |
646 | 646 | then cU | |
647 | 647 | else height | |
648 | 648 | let cV = max([(ck - cT), 0]) | |
649 | 649 | let cX = bo(cJ) | |
650 | 650 | let cY = h(this, cX) | |
651 | 651 | let cZ = (((cS * cV) * 2) / 3) | |
652 | 652 | let da = (cZ - cY) | |
653 | 653 | if ((0 > da)) | |
654 | 654 | then throw("wrong calculations") | |
655 | 655 | else { | |
656 | 656 | let df = br(cJ) | |
657 | 657 | let dg = bs() | |
658 | 658 | let dh = h(this, df) | |
659 | 659 | let di = h(this, dg) | |
660 | 660 | let ee = cC(cF) | |
661 | 661 | let ef = (dG - ee) | |
662 | 662 | if ((0 > ef)) | |
663 | 663 | then throw(("gwxDiff is less then 0: " + toString(ef))) | |
664 | 664 | else { | |
665 | 665 | let bJ = bB(false) | |
666 | 666 | let dj = bB(true) | |
667 | 667 | let dl = bt(cJ) | |
668 | 668 | let dm = h(this, dl) | |
669 | 669 | let dt = fraction(da, ee, dj) | |
670 | 670 | let eg = ((dG * ec) / 2) | |
671 | 671 | let eh = ((ee * ea) / 2) | |
672 | 672 | let ei = (eg - eh) | |
673 | 673 | (((cm(cF, cJ, eb, ed, ec, bQ, bR, bi) ++ bU(dC, dW, 0, 0)) :+ bM("lock", cF, dC, bP, ec, bQ, bR, aD)) ++ [IntegerEntry(bv(), (bJ + ef))]) | |
674 | 674 | } | |
675 | 675 | } | |
676 | 676 | } | |
677 | 677 | else throw("Strict value is not equal to itself.") | |
678 | 678 | } | |
679 | 679 | } | |
680 | 680 | ||
681 | 681 | ||
682 | 682 | ||
683 | 683 | @Callable(aD) | |
684 | 684 | func claimWxBoost (cE,cF) = if ((bz != aD.caller)) | |
685 | 685 | then throw("permissions denied") | |
686 | 686 | else { | |
687 | 687 | let ej = cD(cE, cF, false) | |
688 | 688 | let dw = ej._1 | |
689 | 689 | let dx = ej._2 | |
690 | 690 | let dy = ej._3 | |
691 | 691 | $Tuple2(dx, [dw]) | |
692 | 692 | } | |
693 | 693 | ||
694 | 694 | ||
695 | 695 | ||
696 | 696 | @Callable(aD) | |
697 | 697 | func claimWxBoostREADONLY (cE,cF) = { | |
698 | 698 | let ek = cD(cE, cF, true) | |
699 | 699 | let dw = ek._1 | |
700 | 700 | let dx = ek._2 | |
701 | 701 | let dy = ek._3 | |
702 | 702 | $Tuple2(nil, [dw, dy]) | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | ||
707 | 707 | @Callable(aD) | |
708 | 708 | func unlock (aN) = { | |
709 | 709 | let cI = aO(aN) | |
710 | 710 | let cJ = cI[aG] | |
711 | 711 | let dX = parseIntValue(cI[aH]) | |
712 | 712 | let bP = parseIntValue(cI[aI]) | |
713 | 713 | let dY = parseIntValue(cI[aJ]) | |
714 | 714 | let dZ = (bP + dY) | |
715 | 715 | let dA = ar() | |
716 | 716 | let au = fromBase58String(dA[al]) | |
717 | 717 | if ((dZ >= height)) | |
718 | 718 | then throw((("wait " + toString(dZ)) + " to unlock")) | |
719 | 719 | else if ((0 >= dX)) | |
720 | 720 | then throw("nothing to unlock") | |
721 | 721 | else { | |
722 | 722 | let bi = valueOrElse(getInteger(as, aj()), 0) | |
723 | 723 | (((cm(aN, cJ, 0, bP, dY, 0, 0, toString(bi)) ++ bU(-(dX), 0, 0, -1)) :+ bM("unlock", aN, dX, bP, dY, 0, 0, aD)) :+ ScriptTransfer(addressFromStringValue(aN), dX, au)) | |
724 | 724 | } | |
725 | 725 | } | |
726 | 726 | ||
727 | 727 | ||
728 | 728 | ||
729 | 729 | @Callable(aD) | |
730 | 730 | func gwxUserInfoREADONLY (aN) = { | |
731 | 731 | let aX = cC(aN) | |
732 | 732 | $Tuple2(nil, [aX]) | |
733 | 733 | } | |
734 | 734 | ||
735 | 735 | ||
736 | 736 | ||
737 | 737 | @Callable(aD) | |
738 | + | func userMaxDurationREADONLY (cF) = { | |
739 | + | let dA = ar() | |
740 | + | let ax = parseIntValue(dA[ao]) | |
741 | + | let el = getString(this, aM(cF)) | |
742 | + | if ((el == unit)) | |
743 | + | then $Tuple2(nil, $Tuple2("lock", ax)) | |
744 | + | else { | |
745 | + | let cI = split(value(el), a) | |
746 | + | let bP = parseIntValue(cI[aI]) | |
747 | + | let dY = parseIntValue(cI[aJ]) | |
748 | + | let dZ = (bP + dY) | |
749 | + | let ea = max([(dZ - height), 0]) | |
750 | + | let em = (ax - ea) | |
751 | + | $Tuple2(nil, $Tuple2("increaseLock", em)) | |
752 | + | } | |
753 | + | } | |
754 | + | ||
755 | + | ||
756 | + | ||
757 | + | @Callable(aD) | |
738 | 758 | func getUserGwxAmountAtHeightREADONLY (aN,cy) = { | |
739 | 759 | let aX = cx(aN, cy) | |
740 | 760 | $Tuple2(nil, aX) | |
741 | 761 | } | |
742 | 762 | ||
743 | 763 | ||
744 | 764 | ||
745 | 765 | @Callable(aD) | |
746 | 766 | func getTotalCachedGwxREADONLY () = $Tuple2(nil, bB(true)) | |
747 | 767 | ||
748 | 768 | ||
749 | 769 | ||
750 | 770 | @Callable(aD) | |
751 | - | func setManager ( | |
771 | + | func setManager (en) = { | |
752 | 772 | let dN = aC(aD) | |
753 | 773 | if ((dN == dN)) | |
754 | 774 | then { | |
755 | - | let | |
756 | - | if (( | |
757 | - | then [StringEntry(ad(), | |
775 | + | let eo = fromBase58String(en) | |
776 | + | if ((eo == eo)) | |
777 | + | then [StringEntry(ad(), en)] | |
758 | 778 | else throw("Strict value is not equal to itself.") | |
759 | 779 | } | |
760 | 780 | else throw("Strict value is not equal to itself.") | |
761 | 781 | } | |
762 | 782 | ||
763 | 783 | ||
764 | 784 | ||
765 | 785 | @Callable(aD) | |
766 | 786 | func confirmManager () = { | |
767 | - | let | |
768 | - | let | |
787 | + | let ep = aB() | |
788 | + | let eq = if (isDefined(ep)) | |
769 | 789 | then true | |
770 | 790 | else throw("No pending manager") | |
771 | - | if (( | |
791 | + | if ((eq == eq)) | |
772 | 792 | then { | |
773 | - | let | |
793 | + | let er = if ((aD.callerPublicKey == value(ep))) | |
774 | 794 | then true | |
775 | 795 | else throw("You are not pending manager") | |
776 | - | if (( | |
777 | - | then [StringEntry(ac(), toBase58String(value( | |
796 | + | if ((er == er)) | |
797 | + | then [StringEntry(ac(), toBase58String(value(ep))), DeleteEntry(ad())] | |
778 | 798 | else throw("Strict value is not equal to itself.") | |
779 | 799 | } | |
780 | 800 | else throw("Strict value is not equal to itself.") | |
781 | 801 | } | |
782 | 802 | ||
783 | 803 | ||
784 | - | @Verifier( | |
785 | - | func | |
786 | - | let | |
804 | + | @Verifier(es) | |
805 | + | func et () = { | |
806 | + | let eu = { | |
787 | 807 | let o = az() | |
788 | 808 | if ($isInstanceOf(o, "ByteVector")) | |
789 | 809 | then { | |
790 | 810 | let aF = o | |
791 | 811 | aF | |
792 | 812 | } | |
793 | 813 | else if ($isInstanceOf(o, "Unit")) | |
794 | - | then | |
814 | + | then es.senderPublicKey | |
795 | 815 | else throw("Match error") | |
796 | 816 | } | |
797 | - | sigVerify( | |
817 | + | sigVerify(es.bodyBytes, es.proofs[0], eu) | |
798 | 818 | } | |
799 | 819 |
github/deemru/w8io/026f985 88.64 ms ◑