tx · 8VYiPgTcfPyxtLhcZmUoP5EU8ApKT7v2d2BhMa4cMREH

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.06.27 00:50 [2640187] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "8VYiPgTcfPyxtLhcZmUoP5EU8ApKT7v2d2BhMa4cMREH", "fee": 1000000, "feeAssetId": null, "timestamp": 1687816280025, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "2FWAji86JbF8T8838nEgrZPh9frQYBoAinNKneiMYbC7VhEGxbr46wno7qnPFXC48nJfk7zbk7tat3YVFxvzk3h3" ], "script": "base64:BgIkCAISAwoBARIDCgEBEgMKAQESBAoCCAESABIECgIIARIDCgEIBQADYXJyCQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUFA25pbAAEYXJyMgkAzAgCAAEJAMwIAgACBQNuaWwBA3N1bQIBYQFiCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOM0RuVmZmblV5WnR6Mk1SYms1VTdnaU4xMTJXZW1wTU5kAgZib3Jyb3cJAMwIAgIsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQJAMwIAgDAhD0FA25pbAUDbmlsAQ9nZXRDdXJyZW50UHJpY2UBCmFzc2V0SWRTdHIDCQAAAgUKYXNzZXRJZFN0cgIFV0FWRVMAAgkAAgECBUVycm9yAQpnZXRCYWxhbmNlAgphc3NldElkU3RyB2FkZHJlc3MDCQAAAgUKYXNzZXRJZFN0cgIFV0FWRVMICQDvBwEFB2FkZHJlc3MJYXZhaWxhYmxlCQDwBwIFB2FkZHJlc3MJANkEAQUKYXNzZXRJZFN0cgcBaQEGbG9uZzJ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IId2l0aGRyYXcJAMwIAgUKYXNzZXRJZFN0cgkAzAgCBQthc3NldEFtb3VudAUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQthc3NldEFtb3VudAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBDGNoZWNrQmFsYW5jZQEKYXNzZXRJZFN0cgQHYWRkcmVzcwgFAWkGY2FsbGVyAwkAAAIFCmFzc2V0SWRTdHICBVdBVkVTCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1XYXZlcyBCYWxhbmNlCAkA7wcBBQdhZGRyZXNzCWF2YWlsYWJsZQUDbmlsCQDMCAIJAQxJbnRlZ2VyRW50cnkCAg1Bc3NldCBCYWxhbmNlCQDwBwIFB2FkZHJlc3MJANkEAQUKYXNzZXRJZFN0cgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleWIEPoc=", "height": 2640187, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8Tk3kEk3bUcx9qck43bkFG6Nu35f8aY8iQx9VmNLky45 Next: Aom3dkb579sVZY17NZRSxcsMS3eHJXUBZ9HXcB4htMmf Diff:
OldNewDifferences
5151
5252 z(w(w(v, 0), 1), 2)
5353 }
54-[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(j.caller, (s * f("WAVES")), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
54+[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(j.caller, ((s * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
5555 }
5656 else throw("Error!")
5757 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = [1, 2, 3, 4, 5]
55
66 let b = [1, 2]
77
88 func c (d,e) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil)
99
1010
1111 func f (g) = if ((g == "WAVES"))
1212 then 2
1313 else throw("Error")
1414
1515
1616 func h (g,i) = if ((g == "WAVES"))
1717 then wavesBalance(i).available
1818 else assetBalance(i, fromBase58String(g))
1919
2020
2121 @Callable(j)
2222 func long2x (k) = {
2323 let i = toString(j.caller)
2424 let l = h("WAVES", j.caller)
2525 if ((l > k))
2626 then {
2727 func m (n,o) = {
2828 let p = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, k)])
2929 if ((p == p))
3030 then {
3131 let q = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", (k * f("WAVES"))], nil)
3232 if ((q == q))
3333 then (n + o)
3434 else throw("Strict value is not equal to itself.")
3535 }
3636 else throw("Strict value is not equal to itself.")
3737 }
3838
3939 let r = [k, k]
4040 let s = {
4141 let t = r
4242 let u = size(t)
4343 let v = 0
4444 func w (x,y) = if ((y >= u))
4545 then x
4646 else m(x, t[y])
4747
4848 func z (x,y) = if ((y >= u))
4949 then x
5050 else throw("List size exceeds 2")
5151
5252 z(w(w(v, 0), 1), 2)
5353 }
54-[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(j.caller, (s * f("WAVES")), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
54+[IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(j.caller, ((s * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
5555 }
5656 else throw("Error!")
5757 }
5858
5959
6060
6161 @Callable(j)
6262 func borrow (k) = {
6363 let i = toString(j.caller)
6464 let s = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
6565 if ((s == s))
6666 then [ScriptTransfer(j.caller, k, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k)]
6767 else throw("Strict value is not equal to itself.")
6868 }
6969
7070
7171
7272 @Callable(j)
7373 func borrow2 (k) = {
7474 let i = toString(j.caller)
7575 func m (n,o) = {
7676 let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
7777 if ((A == A))
7878 then (n + o)
7979 else throw("Strict value is not equal to itself.")
8080 }
8181
8282 let r = [k, k]
8383 let s = {
8484 let t = r
8585 let u = size(t)
8686 let v = 0
8787 func w (x,y) = if ((y >= u))
8888 then x
8989 else m(x, t[y])
9090
9191 func z (x,y) = if ((y >= u))
9292 then x
9393 else throw("List size exceeds 2")
9494
9595 z(w(w(v, 0), 1), 2)
9696 }
9797 [IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k), ScriptTransfer(j.caller, s, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
9898 }
9999
100100
101101
102102 @Callable(j)
103103 func borrow5 (g,k) = {
104104 let i = toString(j.caller)
105105 let s = {
106106 let t = a
107107 let u = size(t)
108108 let v = 0
109109 func w (x,y) = if ((y >= u))
110110 then x
111111 else c(x, t[y])
112112
113113 func z (x,y) = if ((y >= u))
114114 then x
115115 else throw("List size exceeds 5")
116116
117117 z(w(w(w(w(w(v, 0), 1), 2), 3), 4), 5)
118118 }
119119 if ((s == s))
120120 then [IntegerEntry(((i + "_borrowed_") + g), k)]
121121 else throw("Strict value is not equal to itself.")
122122 }
123123
124124
125125
126126 @Callable(j)
127127 func deposit () = {
128128 let i = toString(j.caller)
129129 let s = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
130130 if ((s == s))
131131 then [IntegerEntry((i + "supply_waves"), 1000000)]
132132 else throw("Strict value is not equal to itself.")
133133 }
134134
135135
136136
137137 @Callable(j)
138138 func withdraw (g,k) = {
139139 let i = toString(j.caller)
140140 let s = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [g, k], nil)
141141 if ((s == s))
142142 then [IntegerEntry(((i + "_withdrew_") + g), k)]
143143 else throw("Strict value is not equal to itself.")
144144 }
145145
146146
147147
148148 @Callable(j)
149149 func checkBalance (g) = {
150150 let i = j.caller
151151 if ((g == "WAVES"))
152152 then [IntegerEntry("Waves Balance", wavesBalance(i).available)]
153153 else [IntegerEntry("Asset Balance", assetBalance(i, fromBase58String(g)))]
154154 }
155155
156156
157157 @Verifier(B)
158158 func C () = sigVerify(B.bodyBytes, B.proofs[0], B.senderPublicKey)
159159

github/deemru/w8io/026f985 
36.21 ms