tx · H3uU9u8VMJTuJMRa2C8L2DdoBDCDYykkiDqhLax5WfF7 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves 2023.08.30 02:03 [2732627] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{ "type": 13, "id": "H3uU9u8VMJTuJMRa2C8L2DdoBDCDYykkiDqhLax5WfF7", "fee": 1000000, "feeAssetId": null, "timestamp": 1693350247911, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "3j4H8TRdA26tL5gFqTVY57NwRopdz5dNQ8Yr3svadF9bCVpmGTEuHKUYWJgGYchotcC94AMG13BgZ3AmjFoGMZSJ" ], "script": "base64:BgIOCAISABIAEgASABIAEgAOAAl3YXZlczFMSWQJAQdBZGRyZXNzAQEgsfXkVqM/0+6J9kArnDxMgAk2oJh4WqfkxR9uWw/pRoUACXdhdmVzM0xJZAkBB0FkZHJlc3MBASB3Vww16jaU307TFdx6AQCZu00QR9cMiqtX4etxi+C4ZAAJd2F2ZXM1TElkCQEHQWRkcmVzcwEBIBtGaJJlOVgU0G5tRCLl1N4g5dbuu+aJfhfESzP16GakAAZ1c2RuSWQBIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAAEYXJyMwkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsAQNzdW0CAWEBYgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGYm9ycm93CQDMCAICLDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4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QBpAgkAaAIFDWZpcnN0QW1vdW50SW4ARgBkBQNuaWwJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmnVsKV", "height": 2732627, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6aA1XvwvFeg6HnYNfseaTrWkaBzemRZh1PwaE3vufcNA Next: ESAKSDb6Gy2ms7wtvAy1tQk4ZFjagevk889MDjabEKds Diff:
Old | New | Differences | |
---|---|---|---|
227 | 227 | if ($isInstanceOf(R, "Int")) | |
228 | 228 | then { | |
229 | 229 | let S = R | |
230 | - | let V = getIntegerValue((toString(s.caller) + "Last_AmountOut_Waves")) | |
231 | - | [IntegerEntry("Returned_SwappedAmount", S), IntegerEntry("First_Borrow", ((P * 70) / 100)), IntegerEntry("Last_AmountOut_Waves", V)] | |
230 | + | [IntegerEntry("Returned_SwappedAmount", S), IntegerEntry("First_Borrow", ((P * 70) / 100))] | |
232 | 231 | } | |
233 | 232 | else throw("Incorrect invoke result") | |
234 | 233 | } | |
236 | 235 | } | |
237 | 236 | ||
238 | 237 | ||
239 | - | @Verifier( | |
240 | - | func | |
238 | + | @Verifier(V) | |
239 | + | func W () = sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
241 | 240 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6') | |
5 | 5 | ||
6 | 6 | let b = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM') | |
7 | 7 | ||
8 | 8 | let c = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM') | |
9 | 9 | ||
10 | 10 | let d = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
11 | 11 | ||
12 | 12 | let e = [1, 2, 3, 4, 5] | |
13 | 13 | ||
14 | 14 | let f = [1, 2] | |
15 | 15 | ||
16 | 16 | let g = [1, 2, 3] | |
17 | 17 | ||
18 | 18 | func h (i,j) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (l,m) = if ((l == "WAVES")) | |
22 | 22 | then wavesBalance(m).available | |
23 | 23 | else assetBalance(m, fromBase58String(l)) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func n (l) = if ((l == "WAVES")) | |
27 | 27 | then 2 | |
28 | 28 | else throw("Error") | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o () = 2000000 | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func p () = 3000000 | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func q () = 1200000 | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func r () = 2000000 | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Callable(s) | |
44 | 44 | func mintWaves3L_v1 () = if (if ((size(s.payments) != 1)) | |
45 | 45 | then true | |
46 | 46 | else (s.payments[0].amount == 0)) | |
47 | 47 | then throw("1 payment has to be attached") | |
48 | 48 | else { | |
49 | 49 | let m = toString(s.caller) | |
50 | 50 | let t = s.payments[0].amount | |
51 | 51 | let u = ((t / o()) * 100000000) | |
52 | 52 | let v = k("WAVES", s.caller) | |
53 | 53 | if ((v > u)) | |
54 | 54 | then { | |
55 | 55 | let w = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, u)]) | |
56 | 56 | if ((w == w)) | |
57 | 57 | then { | |
58 | 58 | func x (y,z) = { | |
59 | 59 | let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", t], nil) | |
60 | 60 | if ((A == A)) | |
61 | 61 | then (y + z) | |
62 | 62 | else throw("Strict value is not equal to itself.") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | let B = [t, t, t] | |
66 | 66 | let C = { | |
67 | 67 | let D = B | |
68 | 68 | let E = size(D) | |
69 | 69 | let F = 0 | |
70 | 70 | func G (H,I) = if ((I >= E)) | |
71 | 71 | then H | |
72 | 72 | else x(H, D[I]) | |
73 | 73 | ||
74 | 74 | func J (H,I) = if ((I >= E)) | |
75 | 75 | then H | |
76 | 76 | else throw("List size exceeds 3") | |
77 | 77 | ||
78 | 78 | J(G(G(G(F, 0), 1), 2), 3) | |
79 | 79 | } | |
80 | 80 | let K = ((C / q()) * 1000000) | |
81 | 81 | [IntegerEntry((m + "_gave_USDN"), t), IntegerEntry((m + "_deposited_WAVES"), u), IntegerEntry(((m + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), C), IntegerEntry((m + "_received_WAVES3L"), K), ScriptTransfer(s.caller, K, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
82 | 82 | } | |
83 | 83 | else throw("Strict value is not equal to itself.") | |
84 | 84 | } | |
85 | 85 | else throw("Not enough WAVES to deposit!") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | ||
90 | 90 | @Callable(s) | |
91 | 91 | func redeemWaves3L_v1 () = if (if ((size(s.payments) != 1)) | |
92 | 92 | then true | |
93 | 93 | else (s.payments[0].amount == 0)) | |
94 | 94 | then throw("1 payment has to be attached") | |
95 | 95 | else { | |
96 | 96 | let m = toString(s.caller) | |
97 | 97 | let L = s.payments[0].amount | |
98 | 98 | let M = (L * (r() / 1000000)) | |
99 | 99 | [IntegerEntry((m + "_redeemed_WAVES3L"), L), IntegerEntry((m + "_received_USDN"), M), ScriptTransfer(s.caller, M, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(s) | |
105 | 105 | func mintWaves3L_v2 () = if (if ((size(s.payments) != 1)) | |
106 | 106 | then true | |
107 | 107 | else (s.payments[0].amount == 0)) | |
108 | 108 | then throw("1 payment has to be attached") | |
109 | 109 | else { | |
110 | 110 | let m = toString(s.caller) | |
111 | 111 | let t = s.payments[0].amount | |
112 | 112 | let u = ((t / 2000000) * 100000000) | |
113 | 113 | let v = k("WAVES", s.caller) | |
114 | 114 | let N = ((3 - 1) * o()) | |
115 | 115 | if ((t >= N)) | |
116 | 116 | then { | |
117 | 117 | let w = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, u)]) | |
118 | 118 | if ((w == w)) | |
119 | 119 | then { | |
120 | 120 | func x (y,z) = { | |
121 | 121 | let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", t], nil) | |
122 | 122 | if ((A == A)) | |
123 | 123 | then (y + z) | |
124 | 124 | else throw("Strict value is not equal to itself.") | |
125 | 125 | } | |
126 | 126 | ||
127 | 127 | let B = [t, t, t] | |
128 | 128 | let C = { | |
129 | 129 | let D = B | |
130 | 130 | let E = size(D) | |
131 | 131 | let F = 0 | |
132 | 132 | func G (H,I) = if ((I >= E)) | |
133 | 133 | then H | |
134 | 134 | else x(H, D[I]) | |
135 | 135 | ||
136 | 136 | func J (H,I) = if ((I >= E)) | |
137 | 137 | then H | |
138 | 138 | else throw("List size exceeds 3") | |
139 | 139 | ||
140 | 140 | J(G(G(G(F, 0), 1), 2), 3) | |
141 | 141 | } | |
142 | 142 | let O = ((C / o()) * 100000000) | |
143 | 143 | [IntegerEntry((m + "_gave_USDN"), t), IntegerEntry((m + "_deposited_WAVES"), u), IntegerEntry(((m + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), C), IntegerEntry((m + "_received_WAVES3L"), 1000000), ScriptTransfer(s.caller, 1000000, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
144 | 144 | } | |
145 | 145 | else throw("Strict value is not equal to itself.") | |
146 | 146 | } | |
147 | 147 | else throw("Not enough WAVES to deposit!") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | ||
152 | 152 | @Callable(s) | |
153 | 153 | func redeemWaves3L_v2 () = if (if ((size(s.payments) != 1)) | |
154 | 154 | then true | |
155 | 155 | else (s.payments[0].amount == 0)) | |
156 | 156 | then throw("1 payment has to be attached") | |
157 | 157 | else { | |
158 | 158 | let m = toString(s.caller) | |
159 | 159 | let L = 6 | |
160 | 160 | let M = (((L * (p() / 1000000)) - 4) * 1000000) | |
161 | 161 | [IntegerEntry((m + "_redeemed_WAVES3L"), L), IntegerEntry((m + "_received_USDN"), M), ScriptTransfer(s.caller, M, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | ||
166 | 166 | @Callable(s) | |
167 | 167 | func long2 () = if (if ((size(s.payments) != 1)) | |
168 | 168 | then true | |
169 | 169 | else (s.payments[0].amount == 0)) | |
170 | 170 | then throw("1 payment has to be attached") | |
171 | 171 | else { | |
172 | 172 | let P = s.payments[0].amount | |
173 | 173 | let Q = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", nil, [AttachedPayment(d, P)]) | |
174 | 174 | if ((Q == Q)) | |
175 | 175 | then { | |
176 | 176 | let R = Q | |
177 | 177 | if ($isInstanceOf(R, "Int")) | |
178 | 178 | then { | |
179 | 179 | let S = R | |
180 | 180 | let T = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, S)]) | |
181 | 181 | if ((T == T)) | |
182 | 182 | then { | |
183 | 183 | let U = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((P * 75) / 100)], nil) | |
184 | 184 | if ((U == U)) | |
185 | 185 | then { | |
186 | 186 | func x (y,z) = (y + z) | |
187 | 187 | ||
188 | 188 | let B = [1, 1, 1] | |
189 | 189 | let C = { | |
190 | 190 | let D = B | |
191 | 191 | let E = size(D) | |
192 | 192 | let F = 0 | |
193 | 193 | func G (H,I) = if ((I >= E)) | |
194 | 194 | then H | |
195 | 195 | else x(H, D[I]) | |
196 | 196 | ||
197 | 197 | func J (H,I) = if ((I >= E)) | |
198 | 198 | then H | |
199 | 199 | else throw("List size exceeds 5") | |
200 | 200 | ||
201 | 201 | J(G(G(G(G(G(F, 0), 1), 2), 3), 4), 5) | |
202 | 202 | } | |
203 | 203 | nil | |
204 | 204 | } | |
205 | 205 | else throw("Strict value is not equal to itself.") | |
206 | 206 | } | |
207 | 207 | else throw("Strict value is not equal to itself.") | |
208 | 208 | } | |
209 | 209 | else throw("Incorrect invoke result") | |
210 | 210 | } | |
211 | 211 | else throw("Strict value is not equal to itself.") | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | ||
216 | 216 | @Callable(s) | |
217 | 217 | func long2test () = if (if ((size(s.payments) != 1)) | |
218 | 218 | then true | |
219 | 219 | else (s.payments[0].amount == 0)) | |
220 | 220 | then throw("1 payment has to be attached") | |
221 | 221 | else { | |
222 | 222 | let P = s.payments[0].amount | |
223 | 223 | let Q = invoke(addressFromStringValue("3Ms8fqbXM4RhmM6CPTr44hUwHe2CCmVCfVA"), "swapToWaves", [toString(s.caller)], [AttachedPayment(d, P)]) | |
224 | 224 | if ((Q == Q)) | |
225 | 225 | then { | |
226 | 226 | let R = Q | |
227 | 227 | if ($isInstanceOf(R, "Int")) | |
228 | 228 | then { | |
229 | 229 | let S = R | |
230 | - | let V = getIntegerValue((toString(s.caller) + "Last_AmountOut_Waves")) | |
231 | - | [IntegerEntry("Returned_SwappedAmount", S), IntegerEntry("First_Borrow", ((P * 70) / 100)), IntegerEntry("Last_AmountOut_Waves", V)] | |
230 | + | [IntegerEntry("Returned_SwappedAmount", S), IntegerEntry("First_Borrow", ((P * 70) / 100))] | |
232 | 231 | } | |
233 | 232 | else throw("Incorrect invoke result") | |
234 | 233 | } | |
235 | 234 | else throw("Strict value is not equal to itself.") | |
236 | 235 | } | |
237 | 236 | ||
238 | 237 | ||
239 | - | @Verifier( | |
240 | - | func | |
238 | + | @Verifier(V) | |
239 | + | func W () = sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
241 | 240 |
github/deemru/w8io/169f3d6 42.68 ms ◑