tx · C7XMpyex3FdL3tmBKZA7RtsDzkM9WZg5JbfY1xwr4iGo

3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY:  -0.01000000 Waves

2022.06.16 01:39 [2098098] smart account 3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY > SELF 0.00000000 Waves

{ "type": 13, "id": "C7XMpyex3FdL3tmBKZA7RtsDzkM9WZg5JbfY1xwr4iGo", "fee": 1000000, "feeAssetId": null, "timestamp": 1655332770154, "version": 2, "chainId": 84, "sender": "3N6LXAerq2VVAPds14fKmB72f1Whmem7pxY", "senderPublicKey": "fFTt4dRQEMWmxs9cA5He1tph3gmQLAM4cnpj6eqkWPR", "proofs": [ "3Jj5ov5fajiMb4uzWFGvzYq37eKpDsLGw3nEBUChWXkh3kZP5kFaCqSXfE9rBAnNG4AFEojasdZoCybfQwsPEiCa" ], "script": "base64:AAIFAAAAAAAAACsIAhIKCggICAgICAQBARIDCgEEEgUKAwQEBBIDCgEBEgMKAQQSABIDCgEBAAAAHwAAAAAEbWFpbgIAAAAKbWFpbl9hc3NldAAAAAABbAIAAAAJbHBfYXNzZXRfAAAAAAJhMQIAAAAMc3dhcF9hc3NldDFfAAAAAAJzdAIAAAAPYWRkcmVzc19zdGFrZXJfAAAAAANzc3QCAAAADWFkZHJlc3NfcG9vbF8AAAAAA3N3cAIAAAANYWRkcmVzc19zd2FwXwAAAAACYTICAAAADHN3YXBfYXNzZXQyXwAAAAADYWExAgAAAAdwb29sXzFfAAAAAANhYTICAAAAB3Bvb2xfMl8AAAAAA3N0MQIAAAAOc3Rha2VyX2FkZHJlc3MAAAAABHR5cGUCAAAABXR5cGVfAAAAAAJzYQIAAAAPU1RBS0lOR19BTU9VTlRfAAAAAAJsYQIAAAANTEVBU0VfQU1PVU5UXwAAAAACaXgCAAAAA0lEXwAAAAAHcmF0ZUZlZQIAAAATcGVyY2VudGFnZV9yYXRlX2ZlZQAAAAACRDgAAAAAAAX14QAAAAAAAkQ2AAAAAAAAD0JAAAAAA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ADEludGVnZXJFbnRyeQAAAAIFAAAACmN1cnJlbnRLZXkFAAAACW5ld0Ftb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAUVG90YWxfVG9rZW5zX0xvY2tlZDoFAAAACnRvdGFsdG9rZW4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAAZhbW91bnQFAAAACU1haW5Bc3NldAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABoAAAAAgkAAGkAAAACCQAAaAAAAAIFAAAABGRpZmYFAAAAA2JjZAUAAAATcHJldmlvdXNsb2NrYmFsYW5jZQUAAAANY3VycmVudEFtb3VudAUAAAAJTWFpbkFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAApbGlxdWlkaXR5IGlzIGN1cnJlbnRseSB1bmRlciBtYWludGVuYW5jZS4JAAACAAAAAQIAAAAkZEFwcCBpcyBjdXJyZW50bHkgdW5kZXIgbWFpbnRlbmFuY2UuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5D5g6yQ==", "height": 2098098, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GmqNS7rVJTWHTzkk35inrkpwshXLTXEezfwWS9ytEKRD Next: 41exwtqWT7YAmEyhUFR2wK39mmxoZ1dgWHEAe1U4Bwe5 Diff:
OldNewDifferences
5353
5454 let A = "activate_liquidity"
5555
56-let B = "usdn_asset"
56+let B = "block_distribuition"
5757
58-let C = "usdt_asset"
58+let C = "usdn_asset"
5959
60-let D = "usdc_asset"
60+let D = "usdt_asset"
6161
62-let E = "ngnn_asset"
62+let E = "usdc_asset"
6363
64-let F = "accept_waves"
64+let F = "ngnn_asset"
6565
66-@Callable(G)
67-func constructor (H,I,J,K,L,M,N) = if ((G.caller == this))
68- 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)]
66+let G = "accept_waves"
67+
68+@Callable(H)
69+func constructor (I,J,K,L,M,N,O,P) = if ((H.caller == this))
70+ then [StringEntry(a, I), StringEntry(C, J), StringEntry(E, L), StringEntry(D, K), StringEntry(F, M), BooleanEntry(G, N), IntegerEntry(o, O), BooleanEntry(x, true), BooleanEntry(z, false), BooleanEntry(y, false), BooleanEntry(A, false), IntegerEntry(B, P)]
6971 else throw("Only the Admin itself can invoke this function")
7072
7173
7274
73-@Callable(G)
74-func activate (O) = if ((G.caller == this))
75- then [BooleanEntry(x, O)]
75+@Callable(H)
76+func activate (Q) = if ((H.caller == this))
77+ then [BooleanEntry(x, Q)]
7678 else throw("Only the Admin itself can invoke this function")
7779
7880
7981
80-@Callable(G)
81-func maintenance (P,Q,R) = if ((G.caller == this))
82- then [BooleanEntry(y, P), BooleanEntry(z, Q), BooleanEntry(A, R)]
82+@Callable(H)
83+func maintenance (R,S,T) = if ((H.caller == this))
84+ then [BooleanEntry(y, R), BooleanEntry(z, S), BooleanEntry(A, T)]
8385 else throw("Only the Admin itself can invoke this function")
8486
8587
8688
87-@Callable(G)
88-func percentualRateFeeEdit (S) = if ((G.caller == this))
89- then [IntegerEntry(o, S)]
89+@Callable(H)
90+func percentualRateFeeEdit (U) = if ((H.caller == this))
91+ then [IntegerEntry(o, U)]
9092 else throw("Only the Admin itself can invoke this function")
9193
9294
9395
94-@Callable(G)
95-func acceptWaves (T) = if ((G.caller == this))
96- then [BooleanEntry(F, T)]
96+@Callable(H)
97+func acceptWaves (V) = if ((H.caller == this))
98+ then [BooleanEntry(G, V)]
9799 else throw("Only the Admin itself can invoke this function")
98100
99101
100102
101-@Callable(G)
103+@Callable(H)
102104 func deposit () = {
103- let U = getBooleanValue(this, x)
104- let V = getBooleanValue(this, A)
105- let W = getBooleanValue(this, F)
106- let X = G.payments[0]
107- let Y = fromBase58String(getStringValue(this, a))
108- if (U)
109- then if (!(V))
110- then if ((X.assetId != Y))
111- then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(Y)))
105+ let W = getBooleanValue(this, x)
106+ let X = getBooleanValue(this, A)
107+ let Y = getBooleanValue(this, G)
108+ let Z = H.payments[0]
109+ let aa = fromBase58String(getStringValue(this, a))
110+ if (W)
111+ then if (!(X))
112+ then if ((Z.assetId != aa))
113+ then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(aa)))
112114 else {
113- let Z = toBase58String(G.caller.bytes)
114- let aa = {
115- let ab = getInteger(this, Z)
116- if ($isInstanceOf(ab, "Int"))
115+ let ab = toBase58String(H.caller.bytes)
116+ let ac = {
117+ let ad = getInteger(this, ab)
118+ if ($isInstanceOf(ad, "Int"))
117119 then {
118- let ac = ab
119- ac
120+ let ae = ad
121+ ae
120122 }
121123 else 0
122124 }
123- let ad = (aa + X.amount)
124- let ae = IntegerEntry(Z, ad)
125- let af = IntegerEntry(("Deposit_Height_Of_" + Z), height)
126- let ag = {
127- let ab = getInteger(this, "Total_Tokens_Locked:")
128- if ($isInstanceOf(ab, "Int"))
125+ let af = (ac + Z.amount)
126+ let ag = IntegerEntry(ab, af)
127+ let ah = IntegerEntry(("Deposit_Height_Of_" + ab), height)
128+ let ai = {
129+ let ad = getInteger(this, "Total_Tokens_Locked:")
130+ if ($isInstanceOf(ad, "Int"))
129131 then {
130- let ac = ab
131- ac
132+ let ae = ad
133+ ae
132134 }
133135 else 0
134136 }
135- let ah = (ag + X.amount)
136- let ai = IntegerEntry("Total_Tokens_Locked:", ah)
137-[ae, af, ai]
137+ let aj = (ai + Z.amount)
138+ let ak = IntegerEntry("Total_Tokens_Locked:", aj)
139+[ag, ah, ak]
138140 }
139141 else throw("liquidity is currently under maintenance.")
140142 else throw("dApp is currently under maintenance.")
142144
143145
144146
145-@Callable(G)
146-func remove (aj) = {
147- let U = getBooleanValue(this, x)
148- let V = getBooleanValue(this, A)
149- let W = getBooleanValue(this, F)
150- let X = G.payments[0]
151- let Y = fromBase58String(getStringValue(this, a))
152- if (U)
153- then if (!(V))
147+@Callable(H)
148+func remove (al) = {
149+ let W = getBooleanValue(this, x)
150+ let X = getBooleanValue(this, A)
151+ let Y = getBooleanValue(this, G)
152+ let Z = H.payments[0]
153+ let aa = fromBase58String(getStringValue(this, a))
154+ if (W)
155+ then if (!(X))
154156 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))
157+ let ab = toBase58String(H.caller.bytes)
158+ let ac = valueOrElse(getInteger(this, ab), 0)
159+ let am = ("Deposit_Height_Of_" + ab)
160+ let ai = getIntegerValue(this, "Total_Tokens_Locked:")
161+ let aj = (ai - al)
162+ let an = (height - getIntegerValue(this, am))
163+ let ao = getIntegerValue(this, B)
164+ if ((0 > al))
162165 then throw("Can't withdraw negative AxAi amount")
163166 else {
164- let ad = (aa - aj)
165- if ((0 > ad))
167+ let af = (ac - al)
168+ if ((0 > af))
166169 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)]
170+ else [IntegerEntry(ab, af), IntegerEntry("Total_Tokens_Locked:", aj), ScriptTransfer(H.caller, al, aa), ScriptTransfer(H.caller, (((an * ao) / ai) * ac), aa)]
168171 }
169172 }
170173 else throw("liquidity is currently under maintenance.")
172175 }
173176
174177
175-@Verifier(am)
176-func an () = {
177- let ab = am
178- sigVerify(am.bodyBytes, am.proofs[0], am.senderPublicKey)
178+@Verifier(ap)
179+func aq () = {
180+ let ad = ap
181+ sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey)
179182 }
180183
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
56-let B = "usdn_asset"
56+let B = "block_distribuition"
5757
58-let C = "usdt_asset"
58+let C = "usdn_asset"
5959
60-let D = "usdc_asset"
60+let D = "usdt_asset"
6161
62-let E = "ngnn_asset"
62+let E = "usdc_asset"
6363
64-let F = "accept_waves"
64+let F = "ngnn_asset"
6565
66-@Callable(G)
67-func constructor (H,I,J,K,L,M,N) = if ((G.caller == this))
68- 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)]
66+let G = "accept_waves"
67+
68+@Callable(H)
69+func constructor (I,J,K,L,M,N,O,P) = if ((H.caller == this))
70+ then [StringEntry(a, I), StringEntry(C, J), StringEntry(E, L), StringEntry(D, K), StringEntry(F, M), BooleanEntry(G, N), IntegerEntry(o, O), BooleanEntry(x, true), BooleanEntry(z, false), BooleanEntry(y, false), BooleanEntry(A, false), IntegerEntry(B, P)]
6971 else throw("Only the Admin itself can invoke this function")
7072
7173
7274
73-@Callable(G)
74-func activate (O) = if ((G.caller == this))
75- then [BooleanEntry(x, O)]
75+@Callable(H)
76+func activate (Q) = if ((H.caller == this))
77+ then [BooleanEntry(x, Q)]
7678 else throw("Only the Admin itself can invoke this function")
7779
7880
7981
80-@Callable(G)
81-func maintenance (P,Q,R) = if ((G.caller == this))
82- then [BooleanEntry(y, P), BooleanEntry(z, Q), BooleanEntry(A, R)]
82+@Callable(H)
83+func maintenance (R,S,T) = if ((H.caller == this))
84+ then [BooleanEntry(y, R), BooleanEntry(z, S), BooleanEntry(A, T)]
8385 else throw("Only the Admin itself can invoke this function")
8486
8587
8688
87-@Callable(G)
88-func percentualRateFeeEdit (S) = if ((G.caller == this))
89- then [IntegerEntry(o, S)]
89+@Callable(H)
90+func percentualRateFeeEdit (U) = if ((H.caller == this))
91+ then [IntegerEntry(o, U)]
9092 else throw("Only the Admin itself can invoke this function")
9193
9294
9395
94-@Callable(G)
95-func acceptWaves (T) = if ((G.caller == this))
96- then [BooleanEntry(F, T)]
96+@Callable(H)
97+func acceptWaves (V) = if ((H.caller == this))
98+ then [BooleanEntry(G, V)]
9799 else throw("Only the Admin itself can invoke this function")
98100
99101
100102
101-@Callable(G)
103+@Callable(H)
102104 func deposit () = {
103- let U = getBooleanValue(this, x)
104- let V = getBooleanValue(this, A)
105- let W = getBooleanValue(this, F)
106- let X = G.payments[0]
107- let Y = fromBase58String(getStringValue(this, a))
108- if (U)
109- then if (!(V))
110- then if ((X.assetId != Y))
111- then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(Y)))
105+ let W = getBooleanValue(this, x)
106+ let X = getBooleanValue(this, A)
107+ let Y = getBooleanValue(this, G)
108+ let Z = H.payments[0]
109+ let aa = fromBase58String(getStringValue(this, a))
110+ if (W)
111+ then if (!(X))
112+ then if ((Z.assetId != aa))
113+ then throw(("Invalid Asset! Kindly Deposit Only " + toBase58String(aa)))
112114 else {
113- let Z = toBase58String(G.caller.bytes)
114- let aa = {
115- let ab = getInteger(this, Z)
116- if ($isInstanceOf(ab, "Int"))
115+ let ab = toBase58String(H.caller.bytes)
116+ let ac = {
117+ let ad = getInteger(this, ab)
118+ if ($isInstanceOf(ad, "Int"))
117119 then {
118- let ac = ab
119- ac
120+ let ae = ad
121+ ae
120122 }
121123 else 0
122124 }
123- let ad = (aa + X.amount)
124- let ae = IntegerEntry(Z, ad)
125- let af = IntegerEntry(("Deposit_Height_Of_" + Z), height)
126- let ag = {
127- let ab = getInteger(this, "Total_Tokens_Locked:")
128- if ($isInstanceOf(ab, "Int"))
125+ let af = (ac + Z.amount)
126+ let ag = IntegerEntry(ab, af)
127+ let ah = IntegerEntry(("Deposit_Height_Of_" + ab), height)
128+ let ai = {
129+ let ad = getInteger(this, "Total_Tokens_Locked:")
130+ if ($isInstanceOf(ad, "Int"))
129131 then {
130- let ac = ab
131- ac
132+ let ae = ad
133+ ae
132134 }
133135 else 0
134136 }
135- let ah = (ag + X.amount)
136- let ai = IntegerEntry("Total_Tokens_Locked:", ah)
137-[ae, af, ai]
137+ let aj = (ai + Z.amount)
138+ let ak = IntegerEntry("Total_Tokens_Locked:", aj)
139+[ag, ah, ak]
138140 }
139141 else throw("liquidity is currently under maintenance.")
140142 else throw("dApp is currently under maintenance.")
141143 }
142144
143145
144146
145-@Callable(G)
146-func remove (aj) = {
147- let U = getBooleanValue(this, x)
148- let V = getBooleanValue(this, A)
149- let W = getBooleanValue(this, F)
150- let X = G.payments[0]
151- let Y = fromBase58String(getStringValue(this, a))
152- if (U)
153- then if (!(V))
147+@Callable(H)
148+func remove (al) = {
149+ let W = getBooleanValue(this, x)
150+ let X = getBooleanValue(this, A)
151+ let Y = getBooleanValue(this, G)
152+ let Z = H.payments[0]
153+ let aa = fromBase58String(getStringValue(this, a))
154+ if (W)
155+ then if (!(X))
154156 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))
157+ let ab = toBase58String(H.caller.bytes)
158+ let ac = valueOrElse(getInteger(this, ab), 0)
159+ let am = ("Deposit_Height_Of_" + ab)
160+ let ai = getIntegerValue(this, "Total_Tokens_Locked:")
161+ let aj = (ai - al)
162+ let an = (height - getIntegerValue(this, am))
163+ let ao = getIntegerValue(this, B)
164+ if ((0 > al))
162165 then throw("Can't withdraw negative AxAi amount")
163166 else {
164- let ad = (aa - aj)
165- if ((0 > ad))
167+ let af = (ac - al)
168+ if ((0 > af))
166169 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)]
170+ else [IntegerEntry(ab, af), IntegerEntry("Total_Tokens_Locked:", aj), ScriptTransfer(H.caller, al, aa), ScriptTransfer(H.caller, (((an * ao) / ai) * ac), aa)]
168171 }
169172 }
170173 else throw("liquidity is currently under maintenance.")
171174 else throw("dApp is currently under maintenance.")
172175 }
173176
174177
175-@Verifier(am)
176-func an () = {
177- let ab = am
178- sigVerify(am.bodyBytes, am.proofs[0], am.senderPublicKey)
178+@Verifier(ap)
179+func aq () = {
180+ let ad = ap
181+ sigVerify(ap.bodyBytes, ap.proofs[0], ap.senderPublicKey)
179182 }
180183

github/deemru/w8io/026f985 
55.04 ms