tx · 3oXrQK8N9ow1vk74AWAgyLDSwDSmvZ8R4oNSBLDrdYJw

3MzdomR4UkWKtVXq6YGouPJsYXDunjCvSJ8:  -0.03400000 Waves

2022.09.13 17:20 [2227442] smart account 3MzdomR4UkWKtVXq6YGouPJsYXDunjCvSJ8 > SELF 0.00000000 Waves

{ "type": 13, "id": "3oXrQK8N9ow1vk74AWAgyLDSwDSmvZ8R4oNSBLDrdYJw", "fee": 3400000, "feeAssetId": null, "timestamp": 1663078859084, "version": 2, "chainId": 84, "sender": "3MzdomR4UkWKtVXq6YGouPJsYXDunjCvSJ8", "senderPublicKey": "HjRpGGPsru1jMvZDVG83rQfzQRHCWNnrpMaqTpHogxyn", "proofs": [ "csvqi2zx9UJQKVaUUSNnokR5BVPzqYC7gxkrGNHwGNjzUw4iC6cfC6jGKTQhLyVLndu58YeJvr4CkCx1AqVamAg" ], "script": "base64:BgI7CAISAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgSAwoBCBIECgIICBIDCgEIEgMKAQgUABNrX2luc3VyYW5jZV9hZGRyZXNzAhNrX2luc3VyYW5jZV9hZGRyZXNzAA9rX2FkbWluX2FkZHJlc3MCD2tfYWRtaW5fYWRkcmVzcwASa19hZG1pbl9wdWJsaWNfa2V5AhJrX2FkbWluX3B1YmxpY19rZXkADWtfcXVvdGVfYXNzZXQCDWtfcXVvdGVfYXNzZXQAD2tfcXVvdGVfc3Rha2luZwIPa19xdW90ZV9zdGFraW5nABFrX3N0YWtpbmdfYWRkcmVzcwIRa19zdGFraW5nX2FkZHJlc3MAEWtfZmFybWluZ19hZGRyZXNzAhFrX2Zhcm1pbmdfYWRkcmVzcwAFa19hbW0CBWtfYW1tAAprX2FtbV9kYXRhAgprX2FtbV9kYXRhABJrX2dvdmVybmFuY2VfYXNzZXQCC2tfZ292X2Fzc2V0AA9rX21pbmVyX2FkZHJlc3MCD2tfbWluZXJfYWRkcmVzcwAQa19vcmRlcnNfYWRkcmVzcwIQa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RtaW4BBQFpCQDMCAIJAQtEZWxldGVFbnRyeQEJAQ50b0NvbXBvc2l0ZUtleQIFBWtfYW1tBQtfYW1tQWRkcmVzcwUDbmlsAWkBEnNldEdvdmVybmFuY2VBc3NldAEIX2Fzc2V0SWQJAQt2YWx1ZU9yRWxzZQIJAQdpc0FkbWluAQUBaQQKYXNzZXRCeXRlcwkA2QQBBQhfYXNzZXRJZAQHJG1hdGNoMAkA7AcBBQphc3NldEJ5dGVzAwkAAQIFByRtYXRjaDACBUFzc2V0BAVhc3NldAUHJG1hdGNoMAMJAQIhPQIIBQVhc3NldAhkZWNpbWFscwAICQACAQIjSW52YWxpZCBhc3NldCBkZWNpbWFscywgc2hvdWxkIGJlIDgJAMwIAgkBC1N0cmluZ0VudHJ5AgUSa19nb3Zlcm5hbmNlX2Fzc2V0BQhfYXNzZXRJZAUDbmlsCQACAQIQQ2FuJ3QgZmluZCBhc3NldAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJANkEAQkBDmFkbWluUHVibGljS2V5ADCKvbY=", "height": 2227442, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7KtQP7dpSduVd8hyHYPF9d9A6QSUgLzLvDjTxufXHeFH Next: 2MP2Dde1odrt3NmvQaEs4cMnszeCaRUfmvcdPTUH92VN Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "k_insurance_address"
55
66 let b = "k_admin_address"
77
88 let c = "k_admin_public_key"
99
1010 let d = "k_quote_asset"
1111
1212 let e = "k_quote_staking"
1313
1414 let f = "k_staking_address"
1515
1616 let g = "k_farming_address"
1717
1818 let h = "k_amm"
1919
2020 let i = "k_amm_data"
2121
2222 let j = "k_gov_asset"
2323
2424 let k = "k_miner_address"
2525
2626 let l = "k_orders_address"
2727
2828 let m = "k_referral_address"
2929
3030 func n (o,p) = ((o + "_") + p)
3131
3232
3333 func q (r) = toString(valueOrErrorMessage(addressFromString(r), (("Can't parse \"" + r) + "\" as address")))
3434
3535
3636 func s () = getStringValue(this, c)
3737
3838
3939 func t () = (getString(this, b) == unit)
4040
4141
4242 func u () = addressFromStringValue(valueOrErrorMessage(getString(this, b), "Admin not defined"))
4343
4444
4545 func v (w) = if (if (t())
4646 then true
4747 else (w.caller == u()))
4848 then unit
4949 else throw("Only the Admin itself can invoke this function")
5050
5151
5252 func x (w) = if ((w.caller == u()))
5353 then unit
5454 else throw("Only the Admin itself can invoke this function")
5555
5656
5757 @Callable(w)
5858 func setAdmin (y) = valueOrElse(v(w), {
5959 let z = fromBase58String(y)
6060 let r = addressFromPublicKey(z)
6161 [StringEntry(b, toString(r)), StringEntry(c, y)]
6262 })
6363
6464
6565
6666 @Callable(w)
6767 func setInsuranceFund (A) = valueOrElse(x(w), {
6868 let r = q(A)
6969 [StringEntry(a, r)]
7070 })
7171
7272
7373
7474 @Callable(w)
7575 func setLiquidityMiner (B) = valueOrElse(x(w), {
7676 let r = q(B)
7777 [StringEntry(k, r)]
7878 })
7979
8080
8181
8282 @Callable(w)
8383 func setOrders (C) = valueOrElse(x(w), {
8484 let r = q(C)
8585 [StringEntry(l, r)]
8686 })
8787
8888
8989
9090 @Callable(w)
9191 func setReferral (D) = valueOrElse(x(w), {
9292 let r = q(D)
9393 [StringEntry(m, r)]
9494 })
9595
9696
9797
9898 @Callable(w)
9999 func setFarming (E) = valueOrElse(x(w), {
100100 let r = q(E)
101101 [StringEntry(g, r)]
102102 })
103103
104104
105105
106106 @Callable(w)
107107 func setQuoteAsset (F,G) = valueOrElse(x(w), {
108108 let H = q(G)
109109 [StringEntry(d, F), StringEntry(e, G)]
110110 })
111111
112112
113113
114114 @Callable(w)
115115 func setStakingAddress (G) = valueOrElse(x(w), {
116116 let H = q(G)
117117 [StringEntry(f, G)]
118118 })
119119
120120
121121
122122 @Callable(w)
123123 func addAmm (I,J) = valueOrElse(x(w), {
124124 let K = q(I)
125125 [BooleanEntry(n(h, I), true), StringEntry(n(i, I), J)]
126126 })
127127
128128
129129
130130 @Callable(w)
131131 func removeAmm (I) = valueOrElse(x(w), [DeleteEntry(n(h, I))])
132132
133133
134134
135135 @Callable(w)
136136 func setGovernanceAsset (F) = valueOrElse(x(w), {
137137 let L = fromBase58String(F)
138138 let M = assetInfo(L)
139139 if ($isInstanceOf(M, "Asset"))
140140 then {
141141 let N = M
142142 if ((N.decimals != 8))
143143 then throw("Invalid asset decimals, should be 8")
144144 else [StringEntry(j, F)]
145145 }
146146 else throw("Can't find asset")
147147 })
148148
149149
150150 @Verifier(O)
151151 func P () = sigVerify(O.bodyBytes, O.proofs[0], fromBase58String(s()))
152152

github/deemru/w8io/026f985 
39.74 ms