tx · BEciSQ1rLAsV2KpH5Md4NbXLJ7y9EidjyUZ73bUNMGxM

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.07.25 23:49 [2681876] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "BEciSQ1rLAsV2KpH5Md4NbXLJ7y9EidjyUZ73bUNMGxM", "fee": 1000000, "feeAssetId": null, "timestamp": 1690318095855, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "3vzH6AHVGhkAF4qNtTDXeRqpjM8te6evY4S1W25yZAt7eLFxLeTJL6QRkqLcq8m2Jeuo132X9JfKccz8aPTwweZ4" ], "script": "base64:BgI2CAISBAoCAQgSABIAEgASABIAEgASAwoBARIDCgEBEgMKAQESBAoCCAESABIECgIIARIDCgEIDgAJd2F2ZXMxTElkCQEHQWRkcmVzcwEBILH15FajP9PuifZAK5w8TIAJNqCYeFqn5MUfblsP6UaFAAl3YXZlczNMSWQJAQdBZGRyZXNzAQEgd1cMNeo2lN9O0xXcegEAmbtNEEfXDIqrV+HrcYvguGQACXdhdmVzNUxJZAkBB0FkZHJlc3MBASAbRmiSZTlYFNBubUQi5dTeIOXW7rvmiX4XxEsz9ehmpAADYXJyCQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUFA25pbAAEYXJyMgkAzAgCAAEJAMwIAgACBQNuaWwABGFycjMJAMwIAgABCQDMCAIAAgkAzAgCAAMFA25pbAEDc3VtAgFhAWIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2hucl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udHJ5AgkArAICBQdhZGRyZXNzAgxzdXBwbHlfd2F2ZXMAwIQ9BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEId2l0aGRyYXcCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCCHdpdGhkcmF3CQDMCAIFCmFzc2V0SWRTdHIJAMwIAgULYXNzZXRBbW91bnQFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgUHYWRkcmVzcwIKX3dpdGhkcmV3XwUKYXNzZXRJZFN0cgULYXNzZXRBbW91bnQFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQxjaGVja0JhbGFuY2UBCmFzc2V0SWRTdHIEB2FkZHJlc3MIBQFpBmNhbGxlcgMJAAACBQphc3NldElkU3RyAgVXQVZFUwkAzAgCCQEMSW50ZWdlckVudHJ5AgINV2F2ZXMgQmFsYW5jZQgJAO8HAQUHYWRkcmVzcwlhdmFpbGFibGUFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgINQXNzZXQgQmFsYW5jZQkA8AcCBQdhZGRyZXNzCQDZBAEFCmFzc2V0SWRTdHIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXl6u8L9", "height": 2681876, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CvqUcJby4q1zC3e7GywVYLVShWLTzHubErfYDEQnim7i Next: BiBu1eFVJC8xavBXhnnbruyE3HnWCPFPqRwg8Zb7s6UP Diff:
OldNewDifferences
3535 func getWaves3LCurrentPrice () = 1200000
3636
3737
38-func getWaves3LNewPrice () = 1500000
38+func getWaves3LNewPrice () = 1300000
3939
4040
4141 func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)]
122122 let address = toString(i.caller)
123123 let tokenAmount = i.payments[0].amount
124124 let returnedUSDNAmount = (tokenAmount * getWaves3LNewPrice())
125-[IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount), ScriptTransfer(i.caller, returnedUSDNAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
125+[IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount)]
126126 }
127127
128128
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let waves1LId = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6')
55
66 let waves3LId = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')
77
88 let waves5LId = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM')
99
1010 let arr = [1, 2, 3, 4, 5]
1111
1212 let arr2 = [1, 2]
1313
1414 let arr3 = [1, 2, 3]
1515
1616 func sum (a,b) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil)
1717
1818
1919 func getBalance (assetIdStr,address) = if ((assetIdStr == "WAVES"))
2020 then wavesBalance(address).available
2121 else assetBalance(address, fromBase58String(assetIdStr))
2222
2323
2424 func getCurrentPrice (assetIdStr) = if ((assetIdStr == "WAVES"))
2525 then 2
2626 else throw("Error")
2727
2828
2929 func getWavesCurrentPrice () = 2000000
3030
3131
3232 func getWaves1LCurrentPrice () = 1500000
3333
3434
3535 func getWaves3LCurrentPrice () = 1200000
3636
3737
38-func getWaves3LNewPrice () = 1500000
38+func getWaves3LNewPrice () = 1300000
3939
4040
4141 func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)]
4242
4343
4444 @Callable(i)
4545 func transferWaves (assetAmount,senderAddress) = if ((i.caller != this))
4646 then throw("only for internal smart contract invocations")
4747 else [ScriptTransfer(this, assetAmount, unit), IntegerEntry((senderAddress + "_deposited_WAVES"), assetAmount)]
4848
4949
5050
5151 @Callable(i)
5252 func issue3xLong () = [Issue("WAVES3L", "WAVES_USDN_LONG3X Token", 1000000000, 6, true)]
5353
5454
5555
5656 @Callable(i)
5757 func transferWavesTest () = if (if ((size(i.payments) != 1))
5858 then true
5959 else (i.payments[0].amount == 0))
6060 then throw("1 payment has to be attached")
6161 else {
6262 let assetIdStr = "WAVES"
6363 let assetAmount = i.payments[0].amount
6464 transferWavesTestInternal(assetIdStr, assetAmount, toString(i.caller))
6565 }
6666
6767
6868
6969 @Callable(i)
7070 func mintWaves3L () = if (if ((size(i.payments) != 1))
7171 then true
7272 else (i.payments[0].amount == 0))
7373 then throw("1 payment has to be attached")
7474 else {
7575 let address = toString(i.caller)
7676 let stableCoinAmount = i.payments[0].amount
7777 let convertedWavesAmount = ((stableCoinAmount / getWavesCurrentPrice()) * 100000000)
7878 let userWavesAmount = getBalance("WAVES", i.caller)
7979 if ((userWavesAmount > convertedWavesAmount))
8080 then {
8181 let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, convertedWavesAmount)])
8282 if ((depositResult == depositResult))
8383 then {
8484 func repeatFunc (accum,next) = {
8585 let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", stableCoinAmount], nil)
8686 if ((borrowResult == borrowResult))
8787 then (accum + next)
8888 else throw("Strict value is not equal to itself.")
8989 }
9090
9191 let array = [stableCoinAmount, stableCoinAmount, stableCoinAmount]
9292 let res = {
9393 let $l = array
9494 let $s = size($l)
9595 let $acc0 = 0
9696 func $f0_1 ($a,$i) = if (($i >= $s))
9797 then $a
9898 else repeatFunc($a, $l[$i])
9999
100100 func $f0_2 ($a,$i) = if (($i >= $s))
101101 then $a
102102 else throw("List size exceeds 3")
103103
104104 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
105105 }
106106 let returnedTokenAmount = ((res / getWaves3LCurrentPrice()) * 1000000)
107107 [IntegerEntry((address + "_gave_USDN"), stableCoinAmount), IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), IntegerEntry((address + "_received_WAVES3L"), returnedTokenAmount), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')]
108108 }
109109 else throw("Strict value is not equal to itself.")
110110 }
111111 else throw("Not enough WAVES to deposit!")
112112 }
113113
114114
115115
116116 @Callable(i)
117117 func redeemWaves3L () = if (if ((size(i.payments) != 1))
118118 then true
119119 else (i.payments[0].amount == 0))
120120 then throw("1 payment has to be attached")
121121 else {
122122 let address = toString(i.caller)
123123 let tokenAmount = i.payments[0].amount
124124 let returnedUSDNAmount = (tokenAmount * getWaves3LNewPrice())
125-[IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount), ScriptTransfer(i.caller, returnedUSDNAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
125+[IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount)]
126126 }
127127
128128
129129
130130 @Callable(i)
131131 func mintWaves3L_test () = if (if ((size(i.payments) != 1))
132132 then true
133133 else (i.payments[0].amount == 0))
134134 then throw("1 payment has to be attached")
135135 else {
136136 let address = toString(i.caller)
137137 let stableCoinAmount = i.payments[0].amount
138138 [IntegerEntry((address + "_gave_USDN"), stableCoinAmount)]
139139 }
140140
141141
142142
143143 @Callable(i)
144144 func long3x_v2 () = if (if ((size(i.payments) != 1))
145145 then true
146146 else (i.payments[0].amount == 0))
147147 then throw("1 payment has to be attached")
148148 else {
149149 let address = toString(i.caller)
150150 let assetIdStr = "WAVES"
151151 let wavesAmount = i.payments[0].amount
152152 let currentWavesAmount = getBalance(assetIdStr, i.caller)
153153 if ((currentWavesAmount > wavesAmount))
154154 then {
155155 let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, wavesAmount)])
156156 if ((depositResult == depositResult))
157157 then {
158158 func repeatFunc (accum,next) = {
159159 let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((wavesAmount * getCurrentPrice("WAVES")) / 100)], nil)
160160 if ((borrowResult == borrowResult))
161161 then (accum + next)
162162 else throw("Strict value is not equal to itself.")
163163 }
164164
165165 let array = [wavesAmount, wavesAmount]
166166 let res = {
167167 let $l = array
168168 let $s = size($l)
169169 let $acc0 = 0
170170 func $f0_1 ($a,$i) = if (($i >= $s))
171171 then $a
172172 else repeatFunc($a, $l[$i])
173173
174174 func $f0_2 ($a,$i) = if (($i >= $s))
175175 then $a
176176 else throw("List size exceeds 3")
177177
178178 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
179179 }
180180 [IntegerEntry((address + "_deposited_WAVES"), wavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (wavesAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
181181 }
182182 else throw("Strict value is not equal to itself.")
183183 }
184184 else throw("Not enough WAVES to deposit!")
185185 }
186186
187187
188188
189189 @Callable(i)
190190 func long2x (assetAmount) = {
191191 let address = toString(i.caller)
192192 let currentAmount = getBalance("WAVES", i.caller)
193193 if ((currentAmount > assetAmount))
194194 then {
195195 func repeatFunc (accum,next) = {
196196 let transferResult = invoke(this, "transferWaves", [assetAmount, i.caller], nil)
197197 if ((transferResult == transferResult))
198198 then {
199199 let supplyResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, assetAmount)])
200200 if ((supplyResult == supplyResult))
201201 then {
202202 let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((assetAmount * getCurrentPrice("WAVES")) / 100)], nil)
203203 if ((borrowResult == borrowResult))
204204 then (accum + next)
205205 else throw("Strict value is not equal to itself.")
206206 }
207207 else throw("Strict value is not equal to itself.")
208208 }
209209 else throw("Strict value is not equal to itself.")
210210 }
211211
212212 let array = [assetAmount, assetAmount]
213213 let res = {
214214 let $l = array
215215 let $s = size($l)
216216 let $acc0 = 0
217217 func $f0_1 ($a,$i) = if (($i >= $s))
218218 then $a
219219 else repeatFunc($a, $l[$i])
220220
221221 func $f0_2 ($a,$i) = if (($i >= $s))
222222 then $a
223223 else throw("List size exceeds 2")
224224
225225 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
226226 }
227227 [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (assetAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, res, unit)]
228228 }
229229 else throw("Error!")
230230 }
231231
232232
233233
234234 @Callable(i)
235235 func borrow (assetAmount) = {
236236 let address = toString(i.caller)
237237 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
238238 if ((res == res))
239239 then [ScriptTransfer(i.caller, assetAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount)]
240240 else throw("Strict value is not equal to itself.")
241241 }
242242
243243
244244
245245 @Callable(i)
246246 func borrow2 (assetAmount) = {
247247 let address = toString(i.caller)
248248 func repeatFunc (accum,next) = {
249249 let result = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
250250 if ((result == result))
251251 then (accum + next)
252252 else throw("Strict value is not equal to itself.")
253253 }
254254
255255 let array = [assetAmount, assetAmount]
256256 let res = {
257257 let $l = array
258258 let $s = size($l)
259259 let $acc0 = 0
260260 func $f0_1 ($a,$i) = if (($i >= $s))
261261 then $a
262262 else repeatFunc($a, $l[$i])
263263
264264 func $f0_2 ($a,$i) = if (($i >= $s))
265265 then $a
266266 else throw("List size exceeds 2")
267267
268268 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
269269 }
270270 [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount), ScriptTransfer(i.caller, res, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
271271 }
272272
273273
274274
275275 @Callable(i)
276276 func borrow5 (assetIdStr,assetAmount) = {
277277 let address = toString(i.caller)
278278 let res = {
279279 let $l = arr
280280 let $s = size($l)
281281 let $acc0 = 0
282282 func $f0_1 ($a,$i) = if (($i >= $s))
283283 then $a
284284 else sum($a, $l[$i])
285285
286286 func $f0_2 ($a,$i) = if (($i >= $s))
287287 then $a
288288 else throw("List size exceeds 5")
289289
290290 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
291291 }
292292 if ((res == res))
293293 then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)]
294294 else throw("Strict value is not equal to itself.")
295295 }
296296
297297
298298
299299 @Callable(i)
300300 func deposit () = {
301301 let address = toString(i.caller)
302302 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
303303 if ((res == res))
304304 then [IntegerEntry((address + "supply_waves"), 1000000)]
305305 else throw("Strict value is not equal to itself.")
306306 }
307307
308308
309309
310310 @Callable(i)
311311 func withdraw (assetIdStr,assetAmount) = {
312312 let address = toString(i.caller)
313313 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil)
314314 if ((res == res))
315315 then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)]
316316 else throw("Strict value is not equal to itself.")
317317 }
318318
319319
320320
321321 @Callable(i)
322322 func checkBalance (assetIdStr) = {
323323 let address = i.caller
324324 if ((assetIdStr == "WAVES"))
325325 then [IntegerEntry("Waves Balance", wavesBalance(address).available)]
326326 else [IntegerEntry("Asset Balance", assetBalance(address, fromBase58String(assetIdStr)))]
327327 }
328328
329329
330330 @Verifier(tx)
331331 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
332332

github/deemru/w8io/169f3d6 
54.96 ms