tx · ChYEfBrRt4jWi7rWhf3VHsi7G2uYdTyXr5Lnx9cmdnha 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH: -0.01700000 Waves 2022.07.12 10:01 [2136186] smart account 3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH > SELF 0.00000000 Waves
{ "type": 13, "id": "ChYEfBrRt4jWi7rWhf3VHsi7G2uYdTyXr5Lnx9cmdnha", "fee": 1700000, "feeAssetId": null, "timestamp": 1657609309941, "version": 2, "chainId": 84, "sender": "3N8n6BtTBKRZBoPuMzaPBH9FyJhfv9xDFJH", "senderPublicKey": "4hcnYaYoB2XaCzyJ7wfePpG7EfTd6st6aCAhkskJ9cQ5", "proofs": [ "2TacerNk3PAYqpFk1KbbZztZqAmyzhUog4cMWKc4vxRjHmM5uYwTmGxiyi1CuPuDd3zfx8519LvCTRtPsVzsbKsY" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgASABIAEgASABIAEgASABIAEgASABIAEgAAAAAVAAAAAAh1c2RuVXNkdAEAAAAg202DNWRHG5bvnwwvoM991XmdkujhmzUPwT/MewJwKQsAAAAADXVzZG5Vc2R0TFBUQ0kBAAAAIAqBzantQGEdmEq4Oth6BGhTCCbAyZjxYcEpfvod3iryAAAAAAh3eFVzZG5MUAEAAAAgG7mhj3vOTKXN+s5HyQsWjk32W97C65PB1sWo0bGqCxwAAAAAC3d4VXNkbkxQVENJAQAAACC37N3mGwJ72rYTh/1V0NY8tseiNz1LiL3Be29IRACYLwAAAAALd2F2ZXNVc2RuTHABAAAAINUKknePcghEmMkNN/IegHNiilmrJ+abeEGdbsH03iJ2AAAAAA53YXZlc1VzZG5MUFRDSQEAAAAgxRp2zzmtZIv1fW7qZyCOpdLB08oGyQGtTSaCWHrWElkAAAAACWV0aFVzZG5MUAEAAAAgf0Ew/c/5+Zy9fq7UHSNMMuNJS4SB4kp3y/IQBPX7+eEAAAAADGV0aFVzZG5MUFRDSQEAAAAg4e0WyvKtIAu2EMEK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AAAAAJ0cgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAJhbQUAAAAMYnRjVXNkbkxQVENJCQAETAAAAAIFAAAAA3VwZAkABEwAAAACBQAAAAR1cGRLCQAETAAAAAIFAAAAB0xQSXNzdWUJAARMAAAAAgUAAAACdHIFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlefFUAp0=", "height": 2136186, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D3nDpm1uYyPTv2F79h7y4RXdwguxyxd3k24j4CQEZ2HA Next: FTtDGumEc1UADC4JpKSzqcWoe2MjnWmMKKE6LRtkjMcs Diff:
Old | New | Differences | |
---|---|---|---|
131 | 131 | else throw("Can't find asset") | |
132 | 132 | } | |
133 | 133 | let C = (x * (z / y)) | |
134 | - | let D = IntegerEntry( | |
134 | + | let D = IntegerEntry(o, (y + x)) | |
135 | 135 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
136 | 136 | if ((E == E)) | |
137 | 137 | then { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Fm4qczu6Pepz8KUhh3Heb6LeTVfpSMX5vvNgw3x764CS' | |
5 | 5 | ||
6 | 6 | let b = base58'i1snzKxSEZVokh9TWj8hTJQEDBsocnL2hRWsSbsMPK7' | |
7 | 7 | ||
8 | 8 | let c = base58'2sEBVcyDFK2LupCf7MeA4vzHhGK4DC1WjbKGQCLYDqib' | |
9 | 9 | ||
10 | 10 | let d = base58'DNy6WBfhPE4y82RonGdHhZEunNotEDzmNfrBomWnsyGi' | |
11 | 11 | ||
12 | 12 | let e = base58'FLdC14nUVRyiSYjVrMo3X4g8rXQjLbNRaGAyQAm8V68V' | |
13 | 13 | ||
14 | 14 | let f = base58'EGQiqw8jLjg6SVLUeeqMLjk3EjhEVHtjkJ6w46HyFfep' | |
15 | 15 | ||
16 | 16 | let g = base58'9ZkS8GoUWn69QhgF1RsRtS9CFtc7ZbDNX5N238Jmqjdr' | |
17 | 17 | ||
18 | 18 | let h = base58'GCvR4BmCSjncVEEwr9psvhN5mctdNTGPs8Xp4b2oQNFZ' | |
19 | 19 | ||
20 | 20 | let i = base58'2RmyyZ39ZoPoTWksM6urmjgx9mB8ksP8Ru6ba8u89mZm' | |
21 | 21 | ||
22 | 22 | let j = base58'4jarprgmcev38EU5p2duJAznZSLUxZ831jCT2vf95Hey' | |
23 | 23 | ||
24 | 24 | let k = false | |
25 | 25 | ||
26 | 26 | let l = "STAKED_LP" | |
27 | 27 | ||
28 | 28 | let m = "From_Compound" | |
29 | 29 | ||
30 | 30 | let n = "WX_USDN_compound" | |
31 | 31 | ||
32 | 32 | let o = "WX_USDN" | |
33 | 33 | ||
34 | 34 | let p = "WAVES_USDN" | |
35 | 35 | ||
36 | 36 | let q = "WAVES_USDN_COMPOUND" | |
37 | 37 | ||
38 | 38 | let r = "BTC_USDN" | |
39 | 39 | ||
40 | 40 | let s = "BTC_USDN_COMPOUND" | |
41 | 41 | ||
42 | 42 | let t = "ETH_USDN" | |
43 | 43 | ||
44 | 44 | let u = "ETH_USDN_COMPOUND" | |
45 | 45 | ||
46 | 46 | @Callable(v) | |
47 | 47 | func depositBtcUsdnLP () = { | |
48 | 48 | let w = value(v.payments[0]) | |
49 | 49 | let x = w.amount | |
50 | 50 | if ((w.assetId != i)) | |
51 | 51 | then throw("attach BTCUSDNLP tokens only") | |
52 | 52 | else if (k) | |
53 | 53 | then throw("smart contract is on lock") | |
54 | 54 | else { | |
55 | 55 | let y = valueOrElse(getInteger(this, r), 0) | |
56 | 56 | let z = { | |
57 | 57 | let A = assetInfo(j) | |
58 | 58 | if ($isInstanceOf(A, "Asset")) | |
59 | 59 | then { | |
60 | 60 | let B = A | |
61 | 61 | B.quantity | |
62 | 62 | } | |
63 | 63 | else throw("Can't find asset") | |
64 | 64 | } | |
65 | 65 | let C = (x * ((z - assetBalance(this, j)) / y)) | |
66 | 66 | let D = IntegerEntry(r, (y + x)) | |
67 | 67 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
68 | 68 | if ((E == E)) | |
69 | 69 | then { | |
70 | 70 | let F = Reissue(j, C, true) | |
71 | 71 | let G = ScriptTransfer(v.caller, C, j) | |
72 | 72 | [F, G, D] | |
73 | 73 | } | |
74 | 74 | else throw("Strict value is not equal to itself.") | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | ||
80 | 80 | @Callable(v) | |
81 | 81 | func depositWavesUsdnLP () = { | |
82 | 82 | let w = value(v.payments[0]) | |
83 | 83 | let x = w.amount | |
84 | 84 | if ((w.assetId != e)) | |
85 | 85 | then throw("attach WAVESUSDNLP tokens only") | |
86 | 86 | else if (k) | |
87 | 87 | then throw("smart contract is on lock") | |
88 | 88 | else { | |
89 | 89 | let y = valueOrElse(getInteger(this, p), 0) | |
90 | 90 | let z = { | |
91 | 91 | let A = assetInfo(f) | |
92 | 92 | if ($isInstanceOf(A, "Asset")) | |
93 | 93 | then { | |
94 | 94 | let B = A | |
95 | 95 | B.quantity | |
96 | 96 | } | |
97 | 97 | else throw("Can't find asset") | |
98 | 98 | } | |
99 | 99 | let C = (x * (z / y)) | |
100 | 100 | let D = IntegerEntry(p, (y + x)) | |
101 | 101 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
102 | 102 | if ((E == E)) | |
103 | 103 | then { | |
104 | 104 | let F = Reissue(f, C, true) | |
105 | 105 | let G = ScriptTransfer(v.caller, C, f) | |
106 | 106 | [F, G, D] | |
107 | 107 | } | |
108 | 108 | else throw("Strict value is not equal to itself.") | |
109 | 109 | } | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(v) | |
115 | 115 | func depositWxUsdnLP () = { | |
116 | 116 | let w = value(v.payments[0]) | |
117 | 117 | let x = w.amount | |
118 | 118 | if ((w.assetId != c)) | |
119 | 119 | then throw("attach WXUSDNLP tokens only") | |
120 | 120 | else if (k) | |
121 | 121 | then throw("smart contract is on lock") | |
122 | 122 | else { | |
123 | 123 | let y = valueOrElse(getInteger(this, o), 0) | |
124 | 124 | let z = { | |
125 | 125 | let A = assetInfo(d) | |
126 | 126 | if ($isInstanceOf(A, "Asset")) | |
127 | 127 | then { | |
128 | 128 | let B = A | |
129 | 129 | B.quantity | |
130 | 130 | } | |
131 | 131 | else throw("Can't find asset") | |
132 | 132 | } | |
133 | 133 | let C = (x * (z / y)) | |
134 | - | let D = IntegerEntry( | |
134 | + | let D = IntegerEntry(o, (y + x)) | |
135 | 135 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
136 | 136 | if ((E == E)) | |
137 | 137 | then { | |
138 | 138 | let F = Reissue(d, C, true) | |
139 | 139 | let G = ScriptTransfer(v.caller, C, d) | |
140 | 140 | [F, G, D] | |
141 | 141 | } | |
142 | 142 | else throw("Strict value is not equal to itself.") | |
143 | 143 | } | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | ||
148 | 148 | @Callable(v) | |
149 | 149 | func depositUsdtUsdnLP () = { | |
150 | 150 | let w = value(v.payments[0]) | |
151 | 151 | let x = w.amount | |
152 | 152 | if ((w.assetId != a)) | |
153 | 153 | then throw("attach USDTUSDNLP tokens only") | |
154 | 154 | else if (k) | |
155 | 155 | then throw("smart contract is on lock") | |
156 | 156 | else { | |
157 | 157 | let y = valueOrElse(getInteger(this, l), 0) | |
158 | 158 | let z = { | |
159 | 159 | let A = assetInfo(b) | |
160 | 160 | if ($isInstanceOf(A, "Asset")) | |
161 | 161 | then { | |
162 | 162 | let B = A | |
163 | 163 | B.quantity | |
164 | 164 | } | |
165 | 165 | else throw("Can't find asset") | |
166 | 166 | } | |
167 | 167 | let C = (x * (z / y)) | |
168 | 168 | let D = IntegerEntry(l, (y + x)) | |
169 | 169 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
170 | 170 | if ((E == E)) | |
171 | 171 | then { | |
172 | 172 | let F = Reissue(b, C, true) | |
173 | 173 | let G = ScriptTransfer(v.caller, C, b) | |
174 | 174 | [F, G, D] | |
175 | 175 | } | |
176 | 176 | else throw("Strict value is not equal to itself.") | |
177 | 177 | } | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(v) | |
183 | 183 | func depositEthUsdnLP () = { | |
184 | 184 | let w = value(v.payments[0]) | |
185 | 185 | let x = w.amount | |
186 | 186 | if ((w.assetId != g)) | |
187 | 187 | then throw("attach ETHUSDNLP tokens only") | |
188 | 188 | else if (k) | |
189 | 189 | then throw("smart contract is on lock") | |
190 | 190 | else { | |
191 | 191 | let y = valueOrElse(getInteger(this, t), 0) | |
192 | 192 | let z = { | |
193 | 193 | let A = assetInfo(h) | |
194 | 194 | if ($isInstanceOf(A, "Asset")) | |
195 | 195 | then { | |
196 | 196 | let B = A | |
197 | 197 | B.quantity | |
198 | 198 | } | |
199 | 199 | else throw("Can't find asset") | |
200 | 200 | } | |
201 | 201 | let C = (x * ((z - assetBalance(this, h)) / y)) | |
202 | 202 | let D = IntegerEntry(t, (y + x)) | |
203 | 203 | let E = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [w]) | |
204 | 204 | if ((E == E)) | |
205 | 205 | then { | |
206 | 206 | let F = Reissue(h, C, true) | |
207 | 207 | let G = ScriptTransfer(v.caller, C, h) | |
208 | 208 | [F, G, D] | |
209 | 209 | } | |
210 | 210 | else throw("Strict value is not equal to itself.") | |
211 | 211 | } | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | ||
216 | 216 | @Callable(v) | |
217 | 217 | func compoundBTCUSDNLP () = { | |
218 | 218 | let H = value(v.payments[0]) | |
219 | 219 | let I = H.amount | |
220 | 220 | if ((H.assetId != i)) | |
221 | 221 | then throw("attach BTCUSDNLP tokens only") | |
222 | 222 | else { | |
223 | 223 | let J = valueOrElse(getInteger(this, s), 0) | |
224 | 224 | let K = valueOrElse(getInteger(this, r), 0) | |
225 | 225 | let L = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [H]) | |
226 | 226 | if ((L == L)) | |
227 | 227 | then { | |
228 | 228 | let D = IntegerEntry(r, (K + I)) | |
229 | 229 | let M = IntegerEntry(s, (J + I)) | |
230 | 230 | [D, M] | |
231 | 231 | } | |
232 | 232 | else throw("Strict value is not equal to itself.") | |
233 | 233 | } | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | ||
238 | 238 | @Callable(v) | |
239 | 239 | func compoundETHUSDNLP () = { | |
240 | 240 | let H = value(v.payments[0]) | |
241 | 241 | let I = H.amount | |
242 | 242 | if ((H.assetId != g)) | |
243 | 243 | then throw("attach ETHUSDNLP tokens only") | |
244 | 244 | else { | |
245 | 245 | let J = valueOrElse(getInteger(this, u), 0) | |
246 | 246 | let K = valueOrElse(getInteger(this, t), 0) | |
247 | 247 | let L = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [H]) | |
248 | 248 | if ((L == L)) | |
249 | 249 | then { | |
250 | 250 | let D = IntegerEntry(t, (K + I)) | |
251 | 251 | let M = IntegerEntry(u, (J + I)) | |
252 | 252 | [D, M] | |
253 | 253 | } | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | ||
260 | 260 | @Callable(v) | |
261 | 261 | func compoundWXUSDNLP () = { | |
262 | 262 | let H = value(v.payments[0]) | |
263 | 263 | let I = H.amount | |
264 | 264 | if ((H.assetId != c)) | |
265 | 265 | then throw("attach WXUSDNLP tokens only") | |
266 | 266 | else { | |
267 | 267 | let J = valueOrElse(getInteger(this, n), 0) | |
268 | 268 | let K = valueOrElse(getInteger(this, o), 0) | |
269 | 269 | let L = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [H]) | |
270 | 270 | if ((L == L)) | |
271 | 271 | then { | |
272 | 272 | let D = IntegerEntry(o, (K + I)) | |
273 | 273 | let M = IntegerEntry(n, (J + I)) | |
274 | 274 | [D, M] | |
275 | 275 | } | |
276 | 276 | else throw("Strict value is not equal to itself.") | |
277 | 277 | } | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(v) | |
283 | 283 | func compoundUSDTUSDNLP () = { | |
284 | 284 | let H = value(v.payments[0]) | |
285 | 285 | let I = H.amount | |
286 | 286 | if ((H.assetId != a)) | |
287 | 287 | then throw("attach USDTUSDNLP tokens only") | |
288 | 288 | else { | |
289 | 289 | let J = valueOrElse(getInteger(this, m), 0) | |
290 | 290 | let K = valueOrElse(getInteger(this, l), 0) | |
291 | 291 | let L = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [H]) | |
292 | 292 | if ((L == L)) | |
293 | 293 | then { | |
294 | 294 | let D = IntegerEntry(l, (K + I)) | |
295 | 295 | let M = IntegerEntry(m, (J + I)) | |
296 | 296 | [D, M] | |
297 | 297 | } | |
298 | 298 | else throw("Strict value is not equal to itself.") | |
299 | 299 | } | |
300 | 300 | } | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | ||
304 | 304 | @Callable(v) | |
305 | 305 | func compoundWAVESUSDNLP () = { | |
306 | 306 | let H = value(v.payments[0]) | |
307 | 307 | let I = H.amount | |
308 | 308 | if ((H.assetId != e)) | |
309 | 309 | then throw("attach WAVESUSDNLP tokens only") | |
310 | 310 | else { | |
311 | 311 | let J = valueOrElse(getInteger(this, q), 0) | |
312 | 312 | let K = valueOrElse(getInteger(this, p), 0) | |
313 | 313 | let L = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [H]) | |
314 | 314 | if ((L == L)) | |
315 | 315 | then { | |
316 | 316 | let D = IntegerEntry(p, (K + I)) | |
317 | 317 | let M = IntegerEntry(q, (J + I)) | |
318 | 318 | [D, M] | |
319 | 319 | } | |
320 | 320 | else throw("Strict value is not equal to itself.") | |
321 | 321 | } | |
322 | 322 | } | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | ||
326 | 326 | @Callable(v) | |
327 | 327 | func initWX () = { | |
328 | 328 | let N = value(v.payments[0]) | |
329 | 329 | let O = N.amount | |
330 | 330 | if ((N.assetId != c)) | |
331 | 331 | then throw("Unexpected token") | |
332 | 332 | else { | |
333 | 333 | let P = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [N]) | |
334 | 334 | if ((P == P)) | |
335 | 335 | then { | |
336 | 336 | let Q = IntegerEntry(o, O) | |
337 | 337 | let R = IntegerEntry(n, 0) | |
338 | 338 | [Q, R] | |
339 | 339 | } | |
340 | 340 | else throw("Strict value is not equal to itself.") | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | ||
346 | 346 | @Callable(v) | |
347 | 347 | func initWAVES () = { | |
348 | 348 | let N = value(v.payments[0]) | |
349 | 349 | let O = N.amount | |
350 | 350 | if ((N.assetId != e)) | |
351 | 351 | then throw("Unexpected token") | |
352 | 352 | else { | |
353 | 353 | let P = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [N]) | |
354 | 354 | if ((P == P)) | |
355 | 355 | then { | |
356 | 356 | let Q = IntegerEntry(p, O) | |
357 | 357 | let R = IntegerEntry(q, 0) | |
358 | 358 | [Q, R] | |
359 | 359 | } | |
360 | 360 | else throw("Strict value is not equal to itself.") | |
361 | 361 | } | |
362 | 362 | } | |
363 | 363 | ||
364 | 364 | ||
365 | 365 | ||
366 | 366 | @Callable(v) | |
367 | 367 | func initETH () = { | |
368 | 368 | let N = value(v.payments[0]) | |
369 | 369 | let O = N.amount | |
370 | 370 | if ((N.assetId != g)) | |
371 | 371 | then throw("Unexpected token") | |
372 | 372 | else { | |
373 | 373 | let P = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [N]) | |
374 | 374 | if ((P == P)) | |
375 | 375 | then { | |
376 | 376 | let Q = IntegerEntry(t, O) | |
377 | 377 | let R = IntegerEntry(u, 0) | |
378 | 378 | let S = Reissue(h, O, true) | |
379 | 379 | let T = ScriptTransfer(v.caller, O, h) | |
380 | 380 | [Q, R, S, T] | |
381 | 381 | } | |
382 | 382 | else throw("Strict value is not equal to itself.") | |
383 | 383 | } | |
384 | 384 | } | |
385 | 385 | ||
386 | 386 | ||
387 | 387 | ||
388 | 388 | @Callable(v) | |
389 | 389 | func initBTC () = { | |
390 | 390 | let N = value(v.payments[0]) | |
391 | 391 | let O = N.amount | |
392 | 392 | if ((N.assetId != i)) | |
393 | 393 | then throw("Unexpected token") | |
394 | 394 | else { | |
395 | 395 | let P = invoke(Address(base58'3Mx3zmXrMcLFCafMuPtXAzR4ZPVeZYb6qLz'), "stake", nil, [N]) | |
396 | 396 | if ((P == P)) | |
397 | 397 | then { | |
398 | 398 | let Q = IntegerEntry(r, O) | |
399 | 399 | let R = IntegerEntry(s, 0) | |
400 | 400 | let F = Reissue(j, O, true) | |
401 | 401 | let U = ScriptTransfer(v.caller, O, j) | |
402 | 402 | [Q, R, F, U] | |
403 | 403 | } | |
404 | 404 | else throw("Strict value is not equal to itself.") | |
405 | 405 | } | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | @Verifier(V) | |
410 | 410 | func W () = sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
411 | 411 |
github/deemru/w8io/026f985 41.37 ms ◑