tx · BiBu1eFVJC8xavBXhnnbruyE3HnWCPFPqRwg8Zb7s6UP

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.07.25 23:51 [2681879] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "BiBu1eFVJC8xavBXhnnbruyE3HnWCPFPqRwg8Zb7s6UP", "fee": 1000000, "feeAssetId": null, "timestamp": 1690318322044, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "3rD2m8zegZ12oRuEeXA5Gz1xQhES6V2b363EhZEtqiZUS92M3uLgg4w3FqNVi8XPccQDMW65tMbrsTtp7uYbv1ju" ], "script": "base64:BgI2CAISBAoCAQgSABIAEgASABIAEgASAwoBARIDCgEBEgMKAQESBAoCCAESABIECgIIARIDCgEIDgAJd2F2ZXMxTElkCQEHQWRkcmVzcwEBILH15FajP9PuifZAK5w8TIAJNqCYeFqn5MUfblsP6UaFAAl3YXZlczNMSWQJAQdBZGRyZXNzAQEgd1cMNeo2lN9O0xXcegEAmbtNEEfXDIqrV+HrcYvguGQACXdhdmVzNUxJZAkBB0FkZHJlc3MBASAbRmiSZTlYFNBubUQi5dTeIOXW7rvmiX4XxEsz9ehmpAADYXJyCQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUFA25pbAAEYXJyMgkAzAgCAAEJAMwIAgACBQNuaWwABGFycjMJAMwIAgABCQDMCAIAAgkAzAgCAAMFA25pbAEDc3VtAgFhAWIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGR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MCDHN1cHBseV93YXZlcwDAhD0FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQh3aXRoZHJhdwIKYXNzZXRJZFN0cgthc3NldEFtb3VudAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIId2l0aGRyYXcJAMwIAgUKYXNzZXRJZFN0cgkAzAgCBQthc3NldEFtb3VudAUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQthc3NldEFtb3VudAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBDGNoZWNrQmFsYW5jZQEKYXNzZXRJZFN0cgQHYWRkcmVzcwgFAWkGY2FsbGVyAwkAAAIFCmFzc2V0SWRTdHICBVdBVkVTCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1XYXZlcyBCYWxhbmNlCAkA7wcBBQdhZGRyZXNzCWF2YWlsYWJsZQUDbmlsCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1Bc3NldCBCYWxhbmNlCQDwBwIFB2FkZHJlc3MJANkEAQUKYXNzZXRJZFN0cgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleT35oT0=", "height": 2681879, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BEciSQ1rLAsV2KpH5Md4NbXLJ7y9EidjyUZ73bUNMGxM Next: ACCGaSswRh9ZdZZbL7mnVtVFvtmKEJcrBzzQNQmwNFhy Diff:
OldNewDifferences
3535 func getWaves3LCurrentPrice () = 1200000
3636
3737
38-func getWaves3LNewPrice () = 1300000
38+func getWaves3LNewPrice () = 2000000
3939
4040
4141 func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)]
121121 else {
122122 let address = toString(i.caller)
123123 let tokenAmount = i.payments[0].amount
124- let returnedUSDNAmount = (tokenAmount * getWaves3LNewPrice())
124+ let returnedUSDNAmount = (tokenAmount * (getWaves3LNewPrice() / 1000000))
125125 [IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount)]
126126 }
127127
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 () = 1300000
38+func getWaves3LNewPrice () = 2000000
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
124- let returnedUSDNAmount = (tokenAmount * getWaves3LNewPrice())
124+ let returnedUSDNAmount = (tokenAmount * (getWaves3LNewPrice() / 1000000))
125125 [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 
60.72 ms