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/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGYm9ycm93CQDMCAICLDI1RkVxRWpSa3FLNnlDa2lUN0x6NlNBWXo3Z1VGQ3R4ZkNDaG5yVk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| compacted Prev: 7m9SnfNNCoqtU8xoWVg8SasNJsMXTGBKZUB7qfBpnTbi Next: AjyEjt5qsfXig6br83PiZt9afErPbtEgzv8fm4mc4wwu Diff:
OldNewDifferences
101101 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
102102 }
103103 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')]
105105 }
106106 else throw("Strict value is not equal to itself.")
107107 }
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 }
103103 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')]
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 
53.10 ms