tx · 7m9SnfNNCoqtU8xoWVg8SasNJsMXTGBKZUB7qfBpnTbi

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.07.25 15:16 [2681367] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "7m9SnfNNCoqtU8xoWVg8SasNJsMXTGBKZUB7qfBpnTbi", "fee": 1000000, "feeAssetId": null, "timestamp": 1690287443034, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "4FLDoiukGvaxQeFQqxfeK1omaQnCargrCpz8h3cUoAYzxu9Ch1DCswkxtmutT2TNz1DHLj7E9nByNXipe3P3b7eU" ], "script": "base64:BgIyCAISBAoCAQgSABIAEgASABIDCgEBEgMKAQESAwoBARIECgIIARIAEgQKAggBEgMKAQgNAAl3YXZlczFMSWQJAQdBZGRyZXNzAQEgsfXkVqM/0+6J9kArnDxMgAk2oJh4WqfkxR9uWw/pRoUACXdhdmVzM0xJZAkBB0FkZHJlc3MBASB3Vww16jaU307TFdx6AQCZu00QR9cMiqtX4etxi+C4ZAAJd2F2ZXM1TElkCQEHQWRkcmVzcwEBIBtGaJJlOVgU0G5tRCLl1N4g5dbuu+aJfhfESzP16GakAANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAAEYXJyMwkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsAQNzdW0CAWEBYgkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGYm9ycm93CQDMCAICLDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5y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ZHJlc3MCDHN1cHBseV93YXZlcwDAhD0FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQh3aXRoZHJhdwIKYXNzZXRJZFN0cgthc3NldEFtb3VudAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIId2l0aGRyYXcJAMwIAgUKYXNzZXRJZFN0cgkAzAgCBQthc3NldEFtb3VudAUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQthc3NldEFtb3VudAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBDGNoZWNrQmFsYW5jZQEKYXNzZXRJZFN0cgQHYWRkcmVzcwgFAWkGY2FsbGVyAwkAAAIFCmFzc2V0SWRTdHICBVdBVkVTCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1XYXZlcyBCYWxhbmNlCAkA7wcBBQdhZGRyZXNzCWF2YWlsYWJsZQUDbmlsCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1Bc3NldCBCYWxhbmNlCQDwBwIFB2FkZHJlc3MJANkEAQUKYXNzZXRJZFN0cgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleV5rnt0=", "height": 2681367, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9wzU42qWFWCYDpdLaxMqwaiS1iX4XTsuvbyRoY4PR8rV Next: 5vMCNu1aaGE33ht45m29qtKdjC5Xg1yZomKQfPubqBvL Diff:
OldNewDifferences
100100
101101 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
102102 }
103- let returnedTokenAmount = (stableCoinAmount / getWaves3LCurrentPrice())
103+ let returnedTokenAmount = (res / getWaves3LCurrentPrice())
104104 [IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')]
105105 }
106106 else throw("Strict value is not equal to itself.")
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
3838 func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)]
3939
4040
4141 @Callable(i)
4242 func transferWaves (assetAmount,senderAddress) = if ((i.caller != this))
4343 then throw("only for internal smart contract invocations")
4444 else [ScriptTransfer(this, assetAmount, unit), IntegerEntry((senderAddress + "_deposited_WAVES"), assetAmount)]
4545
4646
4747
4848 @Callable(i)
4949 func issue3xLong () = [Issue("WAVES3L", "WAVES_USDN_LONG3X Token", 1000000000, 6, true)]
5050
5151
5252
5353 @Callable(i)
5454 func transferWavesTest () = if (if ((size(i.payments) != 1))
5555 then true
5656 else (i.payments[0].amount == 0))
5757 then throw("1 payment has to be attached")
5858 else {
5959 let assetIdStr = "WAVES"
6060 let assetAmount = i.payments[0].amount
6161 transferWavesTestInternal(assetIdStr, assetAmount, toString(i.caller))
6262 }
6363
6464
6565
6666 @Callable(i)
6767 func mintWaves3L () = if (if ((size(i.payments) != 1))
6868 then true
6969 else (i.payments[0].amount == 0))
7070 then throw("1 payment has to be attached")
7171 else {
7272 let address = toString(i.caller)
7373 let stableCoinAmount = (i.payments[0].amount * 1000000)
7474 let convertedWavesAmount = ((stableCoinAmount / getWavesCurrentPrice()) * 100000000)
7575 let userWavesAmount = getBalance("WAVES", i.caller)
7676 if ((userWavesAmount > convertedWavesAmount))
7777 then {
7878 let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, convertedWavesAmount)])
7979 if ((depositResult == depositResult))
8080 then {
8181 func repeatFunc (accum,next) = {
8282 let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", stableCoinAmount], nil)
8383 if ((borrowResult == borrowResult))
8484 then (accum + next)
8585 else throw("Strict value is not equal to itself.")
8686 }
8787
8888 let array = [stableCoinAmount, stableCoinAmount, stableCoinAmount]
8989 let res = {
9090 let $l = array
9191 let $s = size($l)
9292 let $acc0 = 0
9393 func $f0_1 ($a,$i) = if (($i >= $s))
9494 then $a
9595 else repeatFunc($a, $l[$i])
9696
9797 func $f0_2 ($a,$i) = if (($i >= $s))
9898 then $a
9999 else throw("List size exceeds 3")
100100
101101 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
102102 }
103- let returnedTokenAmount = (stableCoinAmount / getWaves3LCurrentPrice())
103+ let returnedTokenAmount = (res / getWaves3LCurrentPrice())
104104 [IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')]
105105 }
106106 else throw("Strict value is not equal to itself.")
107107 }
108108 else throw("Not enough WAVES to deposit!")
109109 }
110110
111111
112112
113113 @Callable(i)
114114 func long3x_v2 () = if (if ((size(i.payments) != 1))
115115 then true
116116 else (i.payments[0].amount == 0))
117117 then throw("1 payment has to be attached")
118118 else {
119119 let address = toString(i.caller)
120120 let assetIdStr = "WAVES"
121121 let wavesAmount = i.payments[0].amount
122122 let currentWavesAmount = getBalance(assetIdStr, i.caller)
123123 if ((currentWavesAmount > wavesAmount))
124124 then {
125125 let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, wavesAmount)])
126126 if ((depositResult == depositResult))
127127 then {
128128 func repeatFunc (accum,next) = {
129129 let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((wavesAmount * getCurrentPrice("WAVES")) / 100)], nil)
130130 if ((borrowResult == borrowResult))
131131 then (accum + next)
132132 else throw("Strict value is not equal to itself.")
133133 }
134134
135135 let array = [wavesAmount, wavesAmount]
136136 let res = {
137137 let $l = array
138138 let $s = size($l)
139139 let $acc0 = 0
140140 func $f0_1 ($a,$i) = if (($i >= $s))
141141 then $a
142142 else repeatFunc($a, $l[$i])
143143
144144 func $f0_2 ($a,$i) = if (($i >= $s))
145145 then $a
146146 else throw("List size exceeds 3")
147147
148148 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
149149 }
150150 [IntegerEntry((address + "_deposited_WAVES"), wavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (wavesAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
151151 }
152152 else throw("Strict value is not equal to itself.")
153153 }
154154 else throw("Not enough WAVES to deposit!")
155155 }
156156
157157
158158
159159 @Callable(i)
160160 func long2x (assetAmount) = {
161161 let address = toString(i.caller)
162162 let currentAmount = getBalance("WAVES", i.caller)
163163 if ((currentAmount > assetAmount))
164164 then {
165165 func repeatFunc (accum,next) = {
166166 let transferResult = invoke(this, "transferWaves", [assetAmount, i.caller], nil)
167167 if ((transferResult == transferResult))
168168 then {
169169 let supplyResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, assetAmount)])
170170 if ((supplyResult == supplyResult))
171171 then {
172172 let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((assetAmount * getCurrentPrice("WAVES")) / 100)], nil)
173173 if ((borrowResult == borrowResult))
174174 then (accum + next)
175175 else throw("Strict value is not equal to itself.")
176176 }
177177 else throw("Strict value is not equal to itself.")
178178 }
179179 else throw("Strict value is not equal to itself.")
180180 }
181181
182182 let array = [assetAmount, assetAmount]
183183 let res = {
184184 let $l = array
185185 let $s = size($l)
186186 let $acc0 = 0
187187 func $f0_1 ($a,$i) = if (($i >= $s))
188188 then $a
189189 else repeatFunc($a, $l[$i])
190190
191191 func $f0_2 ($a,$i) = if (($i >= $s))
192192 then $a
193193 else throw("List size exceeds 2")
194194
195195 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
196196 }
197197 [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (assetAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, res, unit)]
198198 }
199199 else throw("Error!")
200200 }
201201
202202
203203
204204 @Callable(i)
205205 func borrow (assetAmount) = {
206206 let address = toString(i.caller)
207207 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
208208 if ((res == res))
209209 then [ScriptTransfer(i.caller, assetAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount)]
210210 else throw("Strict value is not equal to itself.")
211211 }
212212
213213
214214
215215 @Callable(i)
216216 func borrow2 (assetAmount) = {
217217 let address = toString(i.caller)
218218 func repeatFunc (accum,next) = {
219219 let result = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
220220 if ((result == result))
221221 then (accum + next)
222222 else throw("Strict value is not equal to itself.")
223223 }
224224
225225 let array = [assetAmount, assetAmount]
226226 let res = {
227227 let $l = array
228228 let $s = size($l)
229229 let $acc0 = 0
230230 func $f0_1 ($a,$i) = if (($i >= $s))
231231 then $a
232232 else repeatFunc($a, $l[$i])
233233
234234 func $f0_2 ($a,$i) = if (($i >= $s))
235235 then $a
236236 else throw("List size exceeds 2")
237237
238238 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
239239 }
240240 [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount), ScriptTransfer(i.caller, res, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
241241 }
242242
243243
244244
245245 @Callable(i)
246246 func borrow5 (assetIdStr,assetAmount) = {
247247 let address = toString(i.caller)
248248 let res = {
249249 let $l = arr
250250 let $s = size($l)
251251 let $acc0 = 0
252252 func $f0_1 ($a,$i) = if (($i >= $s))
253253 then $a
254254 else sum($a, $l[$i])
255255
256256 func $f0_2 ($a,$i) = if (($i >= $s))
257257 then $a
258258 else throw("List size exceeds 5")
259259
260260 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
261261 }
262262 if ((res == res))
263263 then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)]
264264 else throw("Strict value is not equal to itself.")
265265 }
266266
267267
268268
269269 @Callable(i)
270270 func deposit () = {
271271 let address = toString(i.caller)
272272 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
273273 if ((res == res))
274274 then [IntegerEntry((address + "supply_waves"), 1000000)]
275275 else throw("Strict value is not equal to itself.")
276276 }
277277
278278
279279
280280 @Callable(i)
281281 func withdraw (assetIdStr,assetAmount) = {
282282 let address = toString(i.caller)
283283 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil)
284284 if ((res == res))
285285 then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)]
286286 else throw("Strict value is not equal to itself.")
287287 }
288288
289289
290290
291291 @Callable(i)
292292 func checkBalance (assetIdStr) = {
293293 let address = i.caller
294294 if ((assetIdStr == "WAVES"))
295295 then [IntegerEntry("Waves Balance", wavesBalance(address).available)]
296296 else [IntegerEntry("Asset Balance", assetBalance(address, fromBase58String(assetIdStr)))]
297297 }
298298
299299
300300 @Verifier(tx)
301301 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
302302

github/deemru/w8io/026f985 
38.07 ms