tx · 5fh1VBu31yRzPyqqRU71N1pwTMebhKGsvSBrVVxB4K7d

3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY:  -0.01000000 Waves

2022.06.15 05:23 [2096891] smart account 3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY > SELF 0.00000000 Waves

{ "type": 13, "id": "5fh1VBu31yRzPyqqRU71N1pwTMebhKGsvSBrVVxB4K7d", "fee": 1000000, "feeAssetId": null, "timestamp": 1655259786949, "version": 2, "chainId": 84, "sender": "3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY", "senderPublicKey": "fFTt4dRQEMWmxs9cA5He1tph3gmQLAM4cnpj6eqkWPR", "proofs": [ "4yu8E4QKTcWTRoZsrYJdFnfzGSEEN8nYN6Ld5eyBuYRF4VRsYF3bEdDmzzgBC7YHDCU88tLZtg2W2teVeHgBH3pT" ], "script": "base64:AAIFAAAAAAAAACoIAhIJCgcICAgICAQBEgMKAQQSBQoDBAQEEgMKAQESAwoBBBIAEgMKAQEAAAAeAAAAAARtYWluAgAAAAptYWluX2Fzc2V0AAAAAAFsAgAAAAlscF9hc3NldF8AAAAAAmExAgAAAAxzd2FwX2Fzc2V0MV8AAAAAAnN0AgAAAA9hZGRyZXNzX3N0YWtlcl8AAAAAA3NzdAIAAAANYWRkcmVzc19wb29sXwAAAAADc3dwAgAAAA1hZGRyZXNzX3N3YXBfAAAAAAJhMgIAAAAMc3dhcF9hc3NldDJfAAAAAANhYTECAAAAB3Bvb2xfMV8AAAAAA2FhMgIAAAAHcG9vbF8yXwAAAAADc3QxAgAAAA5zdGFrZXJfYWRkcmVzcwAAAAAEdHlwZQIAAAAFdHlwZV8AAAAAAnNhAgAAAA9TVEFLSU5HX0FNT1VOVF8AAAAAAmxhAgAAAA1MRUFTRV9BTU9VTlRfAAAAAAJpeAIAAAADSURfAAAAAAdyYXRlRmVlAgAAABNwZXJjZW50YWdlX3JhdGVfZmVlAAAAAAJEOAAAAAAABfXhAAAAAAACRDYAAAAAAAAPQkA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Ftb3VudAUAAAAJTWFpbkFzc2V0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGkAAAACCQAAaAAAAAIJAABoAAAAAgUAAAAEZGlmZgUAAAAGYW1vdW50AAAAAAAAAAAEAAAAAAAAAAWgBQAAAAlNYWluQXNzZXQFAAAAA25pbAkAAAIAAAABAgAAAClsaXF1aWRpdHkgaXMgY3VycmVudGx5IHVuZGVyIG1haW50ZW5hbmNlLgkAAAIAAAABAgAAACRkQXBwIGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmOtWEq", "height": 2096891, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fivaacj6rrVnkwd51TrqThyUDB7p3oxRNE9moRjPJNRC Next: GmqNS7rVJTWHTzkk35inrkpwshXLTXEezfwWS9ytEKRD Diff:
OldNewDifferences
151151 let Y = toBytes(getStringValue(this, a))
152152 if (U)
153153 then if (!(V))
154- then if ((X.assetId != Y))
155- then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(Y)))
156- else {
157- let Z = toBase58String(G.caller.bytes)
158- let aa = valueOrElse(getInteger(this, Z), 0)
159- let ak = ("Deposit_Height_Of_" + Z)
160- let ag = getIntegerValue(this, "Total_Tokens_Locked:")
161- let ah = (ag - aj)
162- let al = (height - getIntegerValue(this, ak))
163- if ((0 > aj))
164- then throw("Can't withdraw negative AxAi amount")
165- else {
166- let ad = (aa - aj)
167- if ((0 > ad))
168- then throw("Not enough AxAi balance")
169- else [IntegerEntry(Z, ad), IntegerEntry("Total_Tokens_Locked:", ah), ScriptTransfer(G.caller, aj, Y), ScriptTransfer(G.caller, (((al * aj) * 4) / 1440), Y)]
170- }
171- }
154+ then {
155+ let Z = toBase58String(G.caller.bytes)
156+ let aa = valueOrElse(getInteger(this, Z), 0)
157+ let ak = ("Deposit_Height_Of_" + Z)
158+ let ag = getIntegerValue(this, "Total_Tokens_Locked:")
159+ let ah = (ag - aj)
160+ let al = (height - getIntegerValue(this, ak))
161+ if ((0 > aj))
162+ then throw("Can't withdraw negative AxAi amount")
163+ else {
164+ let ad = (aa - aj)
165+ if ((0 > ad))
166+ then throw("Not enough AxAi balance")
167+ else [IntegerEntry(Z, ad), IntegerEntry("Total_Tokens_Locked:", ah), ScriptTransfer(G.caller, aj, Y), ScriptTransfer(G.caller, (((al * aj) * 4) / 1440), Y)]
168+ }
169+ }
172170 else throw("liquidity is currently under maintenance.")
173171 else throw("dApp is currently under maintenance.")
174172 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "main_asset"
55
66 let b = "lp_asset_"
77
88 let c = "swap_asset1_"
99
1010 let d = "address_staker_"
1111
1212 let e = "address_pool_"
1313
1414 let f = "address_swap_"
1515
1616 let g = "swap_asset2_"
1717
1818 let h = "pool_1_"
1919
2020 let i = "pool_2_"
2121
2222 let j = "staker_address"
2323
2424 let k = "type_"
2525
2626 let l = "STAKING_AMOUNT_"
2727
2828 let m = "LEASE_AMOUNT_"
2929
3030 let n = "ID_"
3131
3232 let o = "percentage_rate_fee"
3333
3434 let p = 100000000
3535
3636 let q = 1000000
3737
3838 let r = Address(this.bytes)
3939
4040 let s = 5
4141
4242 func t (u) = toString(valueOrErrorMessage(addressFromString(u), (("Can't parse " + u) + " as address")))
4343
4444
4545 func v (w) = toBase58String(valueOrErrorMessage(value(assetInfo(fromBase58String(w))).id, (("Asset Id: " + w) + " is invalid.")))
4646
4747
4848 let x = "activate"
4949
5050 let y = "activate_pools"
5151
5252 let z = "activate_swap"
5353
5454 let A = "activate_liquidity"
5555
5656 let B = "usdn_asset"
5757
5858 let C = "usdt_asset"
5959
6060 let D = "usdc_asset"
6161
6262 let E = "ngnn_asset"
6363
6464 let F = "accept_waves"
6565
6666 @Callable(G)
6767 func constructor (H,I,J,K,L,M,N) = if ((G.caller == this))
6868 then [StringEntry(a, H), StringEntry(B, I), StringEntry(D, K), StringEntry(C, J), StringEntry(E, L), BooleanEntry(F, M), IntegerEntry(o, N), BooleanEntry(x, true), BooleanEntry(z, false), BooleanEntry(y, false), BooleanEntry(A, false)]
6969 else throw("Only the Admin itself can invoke this function")
7070
7171
7272
7373 @Callable(G)
7474 func activate (O) = if ((G.caller == this))
7575 then [BooleanEntry(x, O)]
7676 else throw("Only the Admin itself can invoke this function")
7777
7878
7979
8080 @Callable(G)
8181 func maintenance (P,Q,R) = if ((G.caller == this))
8282 then [BooleanEntry(y, P), BooleanEntry(z, Q), BooleanEntry(A, R)]
8383 else throw("Only the Admin itself can invoke this function")
8484
8585
8686
8787 @Callable(G)
8888 func percentualRateFeeEdit (S) = if ((G.caller == this))
8989 then [IntegerEntry(o, S)]
9090 else throw("Only the Admin itself can invoke this function")
9191
9292
9393
9494 @Callable(G)
9595 func acceptWaves (T) = if ((G.caller == this))
9696 then [BooleanEntry(F, T)]
9797 else throw("Only the Admin itself can invoke this function")
9898
9999
100100
101101 @Callable(G)
102102 func deposit () = {
103103 let U = getBooleanValue(this, x)
104104 let V = getBooleanValue(this, A)
105105 let W = getBooleanValue(this, F)
106106 let X = G.payments[0]
107107 let Y = fromBase58String(getStringValue(this, a))
108108 if (U)
109109 then if (!(V))
110110 then if ((X.assetId != Y))
111111 then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(Y)))
112112 else {
113113 let Z = toBase58String(G.caller.bytes)
114114 let aa = {
115115 let ab = getInteger(this, Z)
116116 if ($isInstanceOf(ab, "Int"))
117117 then {
118118 let ac = ab
119119 ac
120120 }
121121 else 0
122122 }
123123 let ad = (aa + X.amount)
124124 let ae = IntegerEntry(Z, ad)
125125 let af = IntegerEntry(("Deposit_Height_Of_" + Z), height)
126126 let ag = {
127127 let ab = getInteger(this, "Total_Tokens_Locked:")
128128 if ($isInstanceOf(ab, "Int"))
129129 then {
130130 let ac = ab
131131 ac
132132 }
133133 else 0
134134 }
135135 let ah = (ag + X.amount)
136136 let ai = IntegerEntry("Total_Tokens_Locked:", ah)
137137 [ae, af, ai]
138138 }
139139 else throw("liquidity is currently under maintenance.")
140140 else throw("dApp is currently under maintenance.")
141141 }
142142
143143
144144
145145 @Callable(G)
146146 func remove (aj) = {
147147 let U = getBooleanValue(this, x)
148148 let V = getBooleanValue(this, A)
149149 let W = getBooleanValue(this, F)
150150 let X = G.payments[0]
151151 let Y = toBytes(getStringValue(this, a))
152152 if (U)
153153 then if (!(V))
154- then if ((X.assetId != Y))
155- then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(Y)))
156- else {
157- let Z = toBase58String(G.caller.bytes)
158- let aa = valueOrElse(getInteger(this, Z), 0)
159- let ak = ("Deposit_Height_Of_" + Z)
160- let ag = getIntegerValue(this, "Total_Tokens_Locked:")
161- let ah = (ag - aj)
162- let al = (height - getIntegerValue(this, ak))
163- if ((0 > aj))
164- then throw("Can't withdraw negative AxAi amount")
165- else {
166- let ad = (aa - aj)
167- if ((0 > ad))
168- then throw("Not enough AxAi balance")
169- else [IntegerEntry(Z, ad), IntegerEntry("Total_Tokens_Locked:", ah), ScriptTransfer(G.caller, aj, Y), ScriptTransfer(G.caller, (((al * aj) * 4) / 1440), Y)]
170- }
171- }
154+ then {
155+ let Z = toBase58String(G.caller.bytes)
156+ let aa = valueOrElse(getInteger(this, Z), 0)
157+ let ak = ("Deposit_Height_Of_" + Z)
158+ let ag = getIntegerValue(this, "Total_Tokens_Locked:")
159+ let ah = (ag - aj)
160+ let al = (height - getIntegerValue(this, ak))
161+ if ((0 > aj))
162+ then throw("Can't withdraw negative AxAi amount")
163+ else {
164+ let ad = (aa - aj)
165+ if ((0 > ad))
166+ then throw("Not enough AxAi balance")
167+ else [IntegerEntry(Z, ad), IntegerEntry("Total_Tokens_Locked:", ah), ScriptTransfer(G.caller, aj, Y), ScriptTransfer(G.caller, (((al * aj) * 4) / 1440), Y)]
168+ }
169+ }
172170 else throw("liquidity is currently under maintenance.")
173171 else throw("dApp is currently under maintenance.")
174172 }
175173
176174
177175 @Verifier(am)
178176 func an () = {
179177 let ab = am
180178 sigVerify(am.bodyBytes, am.proofs[0], am.senderPublicKey)
181179 }
182180

github/deemru/w8io/026f985 
36.48 ms