tx · 8Yczqqw7q5deLZPnJocZeBizCQitX3d5MuL1z15hBLXR

3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq:  -0.01000000 Waves

2023.06.27 11:40 [2640832] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves

{ "type": 13, "id": "8Yczqqw7q5deLZPnJocZeBizCQitX3d5MuL1z15hBLXR", "fee": 1000000, "feeAssetId": null, "timestamp": 1687855236952, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "tiCNiHDS2CSxqBihp3ZSqRLn8ev6RiChSYHhnboGSe2A77yLkFAzM7HJeuoKb3cc1FrUEkKAuh2J3ZziNKpmUc3" ], "script": "base64:BgIvCAISBAoCAQgSAwoBARIDCgEBEgMKAQESAwoBARIECgIIARIAEgQKAggBEgMKAQgFAANhcnIJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAARhcnIyCQDMCAIAAQkAzAgCAAIFA25pbAEDc3VtAgFhAWIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZGRDVBVAkAzAgCAMCEPQUDbmlsBQNuaWwBD2dldEN1cnJlbnRQcmljZQEKYXNzZXRJZFN0cgMJAAACBQphc3NldElkU3RyAgVXQVZFUwACCQACAQIFRXJyb3IBCmdldEJhbGFuY2UCCmFzc2V0SWRTdHIHYWRkcmVzcwMJAAACBQphc3NldElkU3RyAgVXQVZFUwgJAO8HAQUHYWRkcmVzcwlhdmFpbGFibGUJAPAHAgUHYWRkcmVzcwkA2QQBBQphc3NldElkU3RyCQFpAQ10cmFuc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lc3MCCl93aXRoZHJld18FCmFzc2V0SWRTdHIFC2Fzc2V0QW1vdW50BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEMY2hlY2tCYWxhbmNlAQphc3NldElkU3RyBAdhZGRyZXNzCAUBaQZjYWxsZXIDCQAAAgUKYXNzZXRJZFN0cgIFV0FWRVMJAMwIAgkBDEludGVnZXJFbnRyeQICDVdhdmVzIEJhbGFuY2UICQDvBwEFB2FkZHJlc3MJYXZhaWxhYmxlBQNuaWwJAMwIAgkBDEludGVnZXJFbnRyeQICDUFzc2V0IEJhbGFuY2UJAPAHAgUHYWRkcmVzcwkA2QQBBQphc3NldElkU3RyBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5T3WsBg==", "height": 2640832, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BLkAVQsubnWRZRfXW2ye8WAzFx7G25tMjhJ2mP36hT2T Next: 75zZaaBD1w91xrBcWM19zS46GweKE22f3AQd83HJ9aAm Diff:
OldNewDifferences
2626
2727
2828 @Callable(j)
29-func transferWavesTest (k) = [ScriptTransfer(this, k, unit), IntegerEntry((toString(j.caller) + "_deposited_WAVES"), k)]
29+func transferWavesTest (k) = [ScriptTransfer(addressFromStringValue("3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq"), k, unit), IntegerEntry((toString(j.caller) + "_deposited_WAVES"), k)]
3030
3131
3232
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 transferWaves (k,l) = if ((j.caller != this))
2323 then throw("only for internal smart contract invocations")
2424 else [ScriptTransfer(this, k, unit), IntegerEntry((l + "_deposited_WAVES"), k)]
2525
2626
2727
2828 @Callable(j)
29-func transferWavesTest (k) = [ScriptTransfer(this, k, unit), IntegerEntry((toString(j.caller) + "_deposited_WAVES"), k)]
29+func transferWavesTest (k) = [ScriptTransfer(addressFromStringValue("3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq"), k, unit), IntegerEntry((toString(j.caller) + "_deposited_WAVES"), k)]
3030
3131
3232
3333 @Callable(j)
3434 func long2x (k) = {
3535 let i = toString(j.caller)
3636 let m = h("WAVES", j.caller)
3737 if ((m > k))
3838 then {
3939 func n (o,p) = {
4040 let q = invoke(this, "transferWaves", [k, j.caller], nil)
4141 if ((q == q))
4242 then {
4343 let r = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, k)])
4444 if ((r == r))
4545 then {
4646 let s = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((k * f("WAVES")) / 100)], nil)
4747 if ((s == s))
4848 then (o + p)
4949 else throw("Strict value is not equal to itself.")
5050 }
5151 else throw("Strict value is not equal to itself.")
5252 }
5353 else throw("Strict value is not equal to itself.")
5454 }
5555
5656 let t = [k, k]
5757 let u = {
5858 let v = t
5959 let w = size(v)
6060 let x = 0
6161 func y (z,A) = if ((A >= w))
6262 then z
6363 else n(z, v[A])
6464
6565 func B (z,A) = if ((A >= w))
6666 then z
6767 else throw("List size exceeds 2")
6868
6969 B(y(y(x, 0), 1), 2)
7070 }
7171 [IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (k * f("WAVES"))), ScriptTransfer(j.caller, ((u * f("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, u, unit)]
7272 }
7373 else throw("Error!")
7474 }
7575
7676
7777
7878 @Callable(j)
7979 func borrow (k) = {
8080 let i = toString(j.caller)
8181 let u = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
8282 if ((u == u))
8383 then [ScriptTransfer(j.caller, k, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k)]
8484 else throw("Strict value is not equal to itself.")
8585 }
8686
8787
8888
8989 @Callable(j)
9090 func borrow2 (k) = {
9191 let i = toString(j.caller)
9292 func n (o,p) = {
9393 let C = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", k], nil)
9494 if ((C == C))
9595 then (o + p)
9696 else throw("Strict value is not equal to itself.")
9797 }
9898
9999 let t = [k, k]
100100 let u = {
101101 let v = t
102102 let w = size(v)
103103 let x = 0
104104 func y (z,A) = if ((A >= w))
105105 then z
106106 else n(z, v[A])
107107
108108 func B (z,A) = if ((A >= w))
109109 then z
110110 else throw("List size exceeds 2")
111111
112112 B(y(y(x, 0), 1), 2)
113113 }
114114 [IntegerEntry(((i + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), k), ScriptTransfer(j.caller, u, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')]
115115 }
116116
117117
118118
119119 @Callable(j)
120120 func borrow5 (g,k) = {
121121 let i = toString(j.caller)
122122 let u = {
123123 let v = a
124124 let w = size(v)
125125 let x = 0
126126 func y (z,A) = if ((A >= w))
127127 then z
128128 else c(z, v[A])
129129
130130 func B (z,A) = if ((A >= w))
131131 then z
132132 else throw("List size exceeds 5")
133133
134134 B(y(y(y(y(y(x, 0), 1), 2), 3), 4), 5)
135135 }
136136 if ((u == u))
137137 then [IntegerEntry(((i + "_borrowed_") + g), k)]
138138 else throw("Strict value is not equal to itself.")
139139 }
140140
141141
142142
143143 @Callable(j)
144144 func deposit () = {
145145 let i = toString(j.caller)
146146 let u = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)])
147147 if ((u == u))
148148 then [IntegerEntry((i + "supply_waves"), 1000000)]
149149 else throw("Strict value is not equal to itself.")
150150 }
151151
152152
153153
154154 @Callable(j)
155155 func withdraw (g,k) = {
156156 let i = toString(j.caller)
157157 let u = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [g, k], nil)
158158 if ((u == u))
159159 then [IntegerEntry(((i + "_withdrew_") + g), k)]
160160 else throw("Strict value is not equal to itself.")
161161 }
162162
163163
164164
165165 @Callable(j)
166166 func checkBalance (g) = {
167167 let i = j.caller
168168 if ((g == "WAVES"))
169169 then [IntegerEntry("Waves Balance", wavesBalance(i).available)]
170170 else [IntegerEntry("Asset Balance", assetBalance(i, fromBase58String(g)))]
171171 }
172172
173173
174174 @Verifier(D)
175175 func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey)
176176

github/deemru/w8io/169f3d6 
34.88 ms