tx · DyQoCAqnMESaNmeJd2Wjou12tAXoUPHBWYAQizwGgVb8

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.06.23 02:03 [2634485] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "DyQoCAqnMESaNmeJd2Wjou12tAXoUPHBWYAQizwGgVb8", "fee": 1000000, "feeAssetId": null, "timestamp": 1687475027708, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "5ipDHTXBR1TKjomStoLpnzAWdNuMBPHf6rATXg3cRtaGZFWFo7CsSbpMoDJiwurVjTjwuaDeNEpAdVvko1TNoKKh" ], "script": "base64:BgIaCAISAwoBARIDCgEBEgQKAggBEgASBAoCCAEDAANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAEDc3VtAgFhAWIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAkAzAgCAMCEPQUDbmlsBQNuaWwFAWkBBmJvcnJvdwELYXNzZXRBbW91bnQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAkAzAgCBQthc3NldEFtb3VudAUDbmlsBQNu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QGV4dHJOYXRpdmUoMTA2MikBAiMzTjNEblZmZm5VeVp0ejJNUmJrNVU3Z2lOMTEyV2VtcE1OZAIGc3VwcGx5BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAwIQ9BQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUHYWRkcmVzcwIMc3VwcGx5X3dhdmVzAMCEPQUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBCHdpdGhkcmF3Agphc3NldElkU3RyC2Fzc2V0QW1vdW50BAdhZGRyZXNzCQClCAEIBQFpBmNhbGxlcgQDcmVzCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOM0RuVmZmblV5WnR6Mk1SYms1VTdnaU4xMTJXZW1wTU5kAgh3aXRoZHJhdwkAzAgCBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIFB2FkZHJlc3MCCl93aXRoZHJld18FCmFzc2V0SWRTdHIFC2Fzc2V0QW1vdW50BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V55KWo7A==", "height": 2634485, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3k8ws5ubAroCNfTEXEvY7T1agLqKifk8bfMYk1BbpsNG Next: BbZ4sMUkDc5VqJGjQCHaPBKTx5DwYt9MpDJnQpZVT2kQ Diff:
OldNewDifferences
2626 func repeatFunc (accum,next) = {
2727 let re = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
2828 if ((re == re))
29- then [(accum + next)]
29+ then {
30+ let result = (accum + next)
31+ if ((result == result))
32+ then [result]
33+ else throw("Strict value is not equal to itself.")
34+ }
3035 else throw("Strict value is not equal to itself.")
3136 }
3237
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let arr = [1, 2, 3, 4, 5]
55
66 let arr2 = [1, 2]
77
88 func sum (a,b) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil)
99
1010
1111 @Callable(i)
1212 func borrow (assetAmount) = {
1313 let address = toString(i.caller)
1414 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
1515 if ((res == res))
1616 then [ScriptTransfer(i.caller, assetAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount)]
1717 else throw("Strict value is not equal to itself.")
1818 }
1919
2020
2121
2222 @Callable(i)
2323 func borrow2 (assetAmount) = {
2424 let address = toString(i.caller)
2525 let array = [assetAmount, assetAmount]
2626 func repeatFunc (accum,next) = {
2727 let re = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil)
2828 if ((re == re))
29- then [(accum + next)]
29+ then {
30+ let result = (accum + next)
31+ if ((result == result))
32+ then [result]
33+ else throw("Strict value is not equal to itself.")
34+ }
3035 else throw("Strict value is not equal to itself.")
3136 }
3237
3338 let res = {
3439 let $l = array
3540 let $s = size($l)
3641 let $acc0 = 0
3742 func $f0_1 ($a,$i) = if (($i >= $s))
3843 then $a
3944 else repeatFunc($a, $l[$i])
4045
4146 func $f0_2 ($a,$i) = if (($i >= $s))
4247 then $a
4348 else throw("List size exceeds 2")
4449
4550 $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
4651 }
4752 if ((res == res))
4853 then [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount), IntegerEntry("Total Amount", res)]
4954 else throw("Strict value is not equal to itself.")
5055 }
5156
5257
5358
5459 @Callable(i)
5560 func borrow5 (assetIdStr,assetAmount) = {
5661 let address = toString(i.caller)
5762 let res = {
5863 let $l = arr
5964 let $s = size($l)
6065 let $acc0 = 0
6166 func $f0_1 ($a,$i) = if (($i >= $s))
6267 then $a
6368 else sum($a, $l[$i])
6469
6570 func $f0_2 ($a,$i) = if (($i >= $s))
6671 then $a
6772 else throw("List size exceeds 5")
6873
6974 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
7075 }
7176 if ((res == res))
7277 then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)]
7378 else throw("Strict value is not equal to itself.")
7479 }
7580
7681
7782
7883 @Callable(i)
7984 func deposit () = {
8085 let address = toString(i.caller)
8186 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
8287 if ((res == res))
8388 then [IntegerEntry((address + "supply_waves"), 1000000)]
8489 else throw("Strict value is not equal to itself.")
8590 }
8691
8792
8893
8994 @Callable(i)
9095 func withdraw (assetIdStr,assetAmount) = {
9196 let address = toString(i.caller)
9297 let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil)
9398 if ((res == res))
9499 then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)]
95100 else throw("Strict value is not equal to itself.")
96101 }
97102
98103
99104 @Verifier(tx)
100105 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
101106

github/deemru/w8io/026f985 
40.70 ms