tx · 5vMCNu1aaGE33ht45m29qtKdjC5Xg1yZomKQfPubqBvL 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves 2023.07.25 15:23 [2681375] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{ "type": 13, "id": "5vMCNu1aaGE33ht45m29qtKdjC5Xg1yZomKQfPubqBvL", "fee": 1000000, "feeAssetId": null, "timestamp": 1690287887179, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "3C8fvv4HobDeJmnZfGWrephc9jPLmoQ3UcbPzjEH75YvGLsCY2GrMyyMh4DcZGKmdLgVNdUX5THXVZ4uBvpFCfTF" ], "script": "base64:BgIyCAISBAoCAQgSABIAEgASABIDCgEBEgMKAQESAwoBARIECgIIARIAEgQKAggBEgMKAQgNAAl3YXZlczFMSWQJAQdBZGRyZXNzAQEgsfXkVqM/0+6J9kArnDxMgAk2oJh4WqfkxR9uWw/pRoUACXdhdmVzM0xJZAkBB0FkZHJlc3MBASB3Vww16jaU307TFdx6AQCZu00QR9cMiqtX4etxi+C4ZAAJd2F2ZXM1TElkCQEHQWRkcmVzcwEBIBtGaJJlOVgU0G5tRCLl1N4g5dbuu+aJfhfESzP16GakAANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAAEYXJyMwkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsAQNzdW0CAWEBYgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGYm9ycm93CQDMCAICLDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5yVkZ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compacted Prev: 7m9SnfNNCoqtU8xoWVg8SasNJsMXTGBKZUB7qfBpnTbi Next: AjyEjt5qsfXig6br83PiZt9afErPbtEgzv8fm4mc4wwu Diff:
Old | New | Differences | |
---|---|---|---|
101 | 101 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
102 | 102 | } | |
103 | 103 | let returnedTokenAmount = (res / getWaves3LCurrentPrice()) | |
104 | - | [IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
104 | + | [IntegerEntry((address + "_gave_USDN"), stableCoinAmount), IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
105 | 105 | } | |
106 | 106 | else throw("Strict value is not equal to itself.") | |
107 | 107 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let waves1LId = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6') | |
5 | 5 | ||
6 | 6 | let waves3LId = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM') | |
7 | 7 | ||
8 | 8 | let waves5LId = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM') | |
9 | 9 | ||
10 | 10 | let arr = [1, 2, 3, 4, 5] | |
11 | 11 | ||
12 | 12 | let arr2 = [1, 2] | |
13 | 13 | ||
14 | 14 | let arr3 = [1, 2, 3] | |
15 | 15 | ||
16 | 16 | func sum (a,b) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getBalance (assetIdStr,address) = if ((assetIdStr == "WAVES")) | |
20 | 20 | then wavesBalance(address).available | |
21 | 21 | else assetBalance(address, fromBase58String(assetIdStr)) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func getCurrentPrice (assetIdStr) = if ((assetIdStr == "WAVES")) | |
25 | 25 | then 2 | |
26 | 26 | else throw("Error") | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func getWavesCurrentPrice () = 2000000 | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func getWaves1LCurrentPrice () = 1500000 | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func getWaves3LCurrentPrice () = 1200000 | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)] | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(i) | |
42 | 42 | func transferWaves (assetAmount,senderAddress) = if ((i.caller != this)) | |
43 | 43 | then throw("only for internal smart contract invocations") | |
44 | 44 | else [ScriptTransfer(this, assetAmount, unit), IntegerEntry((senderAddress + "_deposited_WAVES"), assetAmount)] | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | ||
48 | 48 | @Callable(i) | |
49 | 49 | func issue3xLong () = [Issue("WAVES3L", "WAVES_USDN_LONG3X Token", 1000000000, 6, true)] | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | ||
53 | 53 | @Callable(i) | |
54 | 54 | func transferWavesTest () = if (if ((size(i.payments) != 1)) | |
55 | 55 | then true | |
56 | 56 | else (i.payments[0].amount == 0)) | |
57 | 57 | then throw("1 payment has to be attached") | |
58 | 58 | else { | |
59 | 59 | let assetIdStr = "WAVES" | |
60 | 60 | let assetAmount = i.payments[0].amount | |
61 | 61 | transferWavesTestInternal(assetIdStr, assetAmount, toString(i.caller)) | |
62 | 62 | } | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(i) | |
67 | 67 | func mintWaves3L () = if (if ((size(i.payments) != 1)) | |
68 | 68 | then true | |
69 | 69 | else (i.payments[0].amount == 0)) | |
70 | 70 | then throw("1 payment has to be attached") | |
71 | 71 | else { | |
72 | 72 | let address = toString(i.caller) | |
73 | 73 | let stableCoinAmount = (i.payments[0].amount * 1000000) | |
74 | 74 | let convertedWavesAmount = ((stableCoinAmount / getWavesCurrentPrice()) * 100000000) | |
75 | 75 | let userWavesAmount = getBalance("WAVES", i.caller) | |
76 | 76 | if ((userWavesAmount > convertedWavesAmount)) | |
77 | 77 | then { | |
78 | 78 | let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, convertedWavesAmount)]) | |
79 | 79 | if ((depositResult == depositResult)) | |
80 | 80 | then { | |
81 | 81 | func repeatFunc (accum,next) = { | |
82 | 82 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", stableCoinAmount], nil) | |
83 | 83 | if ((borrowResult == borrowResult)) | |
84 | 84 | then (accum + next) | |
85 | 85 | else throw("Strict value is not equal to itself.") | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | let array = [stableCoinAmount, stableCoinAmount, stableCoinAmount] | |
89 | 89 | let res = { | |
90 | 90 | let $l = array | |
91 | 91 | let $s = size($l) | |
92 | 92 | let $acc0 = 0 | |
93 | 93 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
94 | 94 | then $a | |
95 | 95 | else repeatFunc($a, $l[$i]) | |
96 | 96 | ||
97 | 97 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
98 | 98 | then $a | |
99 | 99 | else throw("List size exceeds 3") | |
100 | 100 | ||
101 | 101 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
102 | 102 | } | |
103 | 103 | let returnedTokenAmount = (res / getWaves3LCurrentPrice()) | |
104 | - | [IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
104 | + | [IntegerEntry((address + "_gave_USDN"), stableCoinAmount), IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
105 | 105 | } | |
106 | 106 | else throw("Strict value is not equal to itself.") | |
107 | 107 | } | |
108 | 108 | else throw("Not enough WAVES to deposit!") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | ||
113 | 113 | @Callable(i) | |
114 | 114 | func long3x_v2 () = if (if ((size(i.payments) != 1)) | |
115 | 115 | then true | |
116 | 116 | else (i.payments[0].amount == 0)) | |
117 | 117 | then throw("1 payment has to be attached") | |
118 | 118 | else { | |
119 | 119 | let address = toString(i.caller) | |
120 | 120 | let assetIdStr = "WAVES" | |
121 | 121 | let wavesAmount = i.payments[0].amount | |
122 | 122 | let currentWavesAmount = getBalance(assetIdStr, i.caller) | |
123 | 123 | if ((currentWavesAmount > wavesAmount)) | |
124 | 124 | then { | |
125 | 125 | let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, wavesAmount)]) | |
126 | 126 | if ((depositResult == depositResult)) | |
127 | 127 | then { | |
128 | 128 | func repeatFunc (accum,next) = { | |
129 | 129 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((wavesAmount * getCurrentPrice("WAVES")) / 100)], nil) | |
130 | 130 | if ((borrowResult == borrowResult)) | |
131 | 131 | then (accum + next) | |
132 | 132 | else throw("Strict value is not equal to itself.") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | let array = [wavesAmount, wavesAmount] | |
136 | 136 | let res = { | |
137 | 137 | let $l = array | |
138 | 138 | let $s = size($l) | |
139 | 139 | let $acc0 = 0 | |
140 | 140 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
141 | 141 | then $a | |
142 | 142 | else repeatFunc($a, $l[$i]) | |
143 | 143 | ||
144 | 144 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
145 | 145 | then $a | |
146 | 146 | else throw("List size exceeds 3") | |
147 | 147 | ||
148 | 148 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
149 | 149 | } | |
150 | 150 | [IntegerEntry((address + "_deposited_WAVES"), wavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (wavesAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
151 | 151 | } | |
152 | 152 | else throw("Strict value is not equal to itself.") | |
153 | 153 | } | |
154 | 154 | else throw("Not enough WAVES to deposit!") | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(i) | |
160 | 160 | func long2x (assetAmount) = { | |
161 | 161 | let address = toString(i.caller) | |
162 | 162 | let currentAmount = getBalance("WAVES", i.caller) | |
163 | 163 | if ((currentAmount > assetAmount)) | |
164 | 164 | then { | |
165 | 165 | func repeatFunc (accum,next) = { | |
166 | 166 | let transferResult = invoke(this, "transferWaves", [assetAmount, i.caller], nil) | |
167 | 167 | if ((transferResult == transferResult)) | |
168 | 168 | then { | |
169 | 169 | let supplyResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, assetAmount)]) | |
170 | 170 | if ((supplyResult == supplyResult)) | |
171 | 171 | then { | |
172 | 172 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((assetAmount * getCurrentPrice("WAVES")) / 100)], nil) | |
173 | 173 | if ((borrowResult == borrowResult)) | |
174 | 174 | then (accum + next) | |
175 | 175 | else throw("Strict value is not equal to itself.") | |
176 | 176 | } | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | else throw("Strict value is not equal to itself.") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | let array = [assetAmount, assetAmount] | |
183 | 183 | let res = { | |
184 | 184 | let $l = array | |
185 | 185 | let $s = size($l) | |
186 | 186 | let $acc0 = 0 | |
187 | 187 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
188 | 188 | then $a | |
189 | 189 | else repeatFunc($a, $l[$i]) | |
190 | 190 | ||
191 | 191 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
192 | 192 | then $a | |
193 | 193 | else throw("List size exceeds 2") | |
194 | 194 | ||
195 | 195 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
196 | 196 | } | |
197 | 197 | [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (assetAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, res, unit)] | |
198 | 198 | } | |
199 | 199 | else throw("Error!") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | ||
204 | 204 | @Callable(i) | |
205 | 205 | func borrow (assetAmount) = { | |
206 | 206 | let address = toString(i.caller) | |
207 | 207 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil) | |
208 | 208 | if ((res == res)) | |
209 | 209 | then [ScriptTransfer(i.caller, assetAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount)] | |
210 | 210 | else throw("Strict value is not equal to itself.") | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | ||
215 | 215 | @Callable(i) | |
216 | 216 | func borrow2 (assetAmount) = { | |
217 | 217 | let address = toString(i.caller) | |
218 | 218 | func repeatFunc (accum,next) = { | |
219 | 219 | let result = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil) | |
220 | 220 | if ((result == result)) | |
221 | 221 | then (accum + next) | |
222 | 222 | else throw("Strict value is not equal to itself.") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | let array = [assetAmount, assetAmount] | |
226 | 226 | let res = { | |
227 | 227 | let $l = array | |
228 | 228 | let $s = size($l) | |
229 | 229 | let $acc0 = 0 | |
230 | 230 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
231 | 231 | then $a | |
232 | 232 | else repeatFunc($a, $l[$i]) | |
233 | 233 | ||
234 | 234 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
235 | 235 | then $a | |
236 | 236 | else throw("List size exceeds 2") | |
237 | 237 | ||
238 | 238 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
239 | 239 | } | |
240 | 240 | [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount), ScriptTransfer(i.caller, res, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(i) | |
246 | 246 | func borrow5 (assetIdStr,assetAmount) = { | |
247 | 247 | let address = toString(i.caller) | |
248 | 248 | let res = { | |
249 | 249 | let $l = arr | |
250 | 250 | let $s = size($l) | |
251 | 251 | let $acc0 = 0 | |
252 | 252 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
253 | 253 | then $a | |
254 | 254 | else sum($a, $l[$i]) | |
255 | 255 | ||
256 | 256 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
257 | 257 | then $a | |
258 | 258 | else throw("List size exceeds 5") | |
259 | 259 | ||
260 | 260 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
261 | 261 | } | |
262 | 262 | if ((res == res)) | |
263 | 263 | then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)] | |
264 | 264 | else throw("Strict value is not equal to itself.") | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(i) | |
270 | 270 | func deposit () = { | |
271 | 271 | let address = toString(i.caller) | |
272 | 272 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)]) | |
273 | 273 | if ((res == res)) | |
274 | 274 | then [IntegerEntry((address + "supply_waves"), 1000000)] | |
275 | 275 | else throw("Strict value is not equal to itself.") | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(i) | |
281 | 281 | func withdraw (assetIdStr,assetAmount) = { | |
282 | 282 | let address = toString(i.caller) | |
283 | 283 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil) | |
284 | 284 | if ((res == res)) | |
285 | 285 | then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)] | |
286 | 286 | else throw("Strict value is not equal to itself.") | |
287 | 287 | } | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | ||
291 | 291 | @Callable(i) | |
292 | 292 | func checkBalance (assetIdStr) = { | |
293 | 293 | let address = i.caller | |
294 | 294 | if ((assetIdStr == "WAVES")) | |
295 | 295 | then [IntegerEntry("Waves Balance", wavesBalance(address).available)] | |
296 | 296 | else [IntegerEntry("Asset Balance", assetBalance(address, fromBase58String(assetIdStr)))] | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Verifier(tx) | |
301 | 301 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
302 | 302 |
github/deemru/w8io/026f985 53.10 ms ◑