tx · DDvS8M4E879kMFRKsuKngHG2f7MvRzNqCVFo2BfgSdWD 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx: -0.02100000 Waves 2023.02.10 10:52 [2443254] smart account 3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx > SELF 0.00000000 Waves
{ "type": 13, "id": "DDvS8M4E879kMFRKsuKngHG2f7MvRzNqCVFo2BfgSdWD", "fee": 2100000, "feeAssetId": null, "timestamp": 1676015646309, "version": 2, "chainId": 84, "sender": "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx", "senderPublicKey": "NaY7sqttWGpnVrcb6uE8xPp2VnMjT7fhv3q1TKGL9ar", "proofs": [ "aCNq1riKLbDiBbGRpSGLXnWZMyGcETLmtrKhTGsvjkcNPbkuyWwcmA8cnQZuW5Eeas27etW6s9xF5EdC7ouk6jQ", "2XUMw1hXxScusyw85f8dV2MMnqoktrinjp4pFqcsGhcqgGh65Xioo1hreuRbXpEePzBbckvHLau7aR4zirfBm2kc", "53EPQrBvibqe1SPDZEB5g47zi8SEkpsaRAbVcxmkzHj8YWm9XMs6jdE1d8SxpufDD8THJ4qJrngPrwQZSu6zEGvr" ], "script": "base64:AAIEAAAAAAAAACsIAhIQCg4ICAgICAgICAgICAgICBIDCgEIEgwKCgECAQIBAgECAQISABIAAAAAKgAAAAADU0VQAgAAAAJfXwAAAAAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAAAAAAAAAAAAQAAAAAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAAAAAAAAAACAAAAABRJZHhDb250cm9sQ2ZnUnBkRGFwcAAAAAAAAAAAAwAAAAAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAAAAAAAAAAEAAAAABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAAAAAAAAAAFAAAAABVJZHhDb250cm9sQ2ZnUmVzdERhcHAAAAAAAAAAAAYAAAAAHUlkeENvbnRyb2xDZmdO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A7qmkBc=", "height": 2443254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8MMAPLgc1dx9wweySh4pAuwYek7XLArWYsFvws4y56t8 Next: AphZ2C6CffKoiMCNuHknyRgdEQnVcgvTaif8ukqbuAfS Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SEP = "__" | |
5 | + | ||
6 | + | let IdxControlCfgNeutrinoDapp = 1 | |
7 | + | ||
8 | + | let IdxControlCfgAuctionDapp = 2 | |
9 | + | ||
10 | + | let IdxControlCfgRpdDapp = 3 | |
11 | + | ||
12 | + | let IdxControlCfgMathDapp = 4 | |
13 | + | ||
14 | + | let IdxControlCfgLiquidationDapp = 5 | |
15 | + | ||
16 | + | let IdxControlCfgRestDapp = 6 | |
17 | + | ||
18 | + | let IdxControlCfgNodeRegistryDapp = 7 | |
19 | + | ||
20 | + | let IdxControlCfgNsbtStakingDapp = 8 | |
21 | + | ||
22 | + | let IdxControlCfgMediatorDapp = 9 | |
23 | + | ||
24 | + | let IdxControlCfgSurfStakingDapp = 10 | |
25 | + | ||
26 | + | let IdxControlCfgGnsbtControllerDapp = 11 | |
27 | + | ||
28 | + | let IdxControlCfgRestV2Dapp = 12 | |
29 | + | ||
30 | + | let IdxControlCfgGovernanceDapp = 13 | |
31 | + | ||
32 | + | let IdxControlCfgPegProviderDapp = 14 | |
33 | + | ||
34 | + | func keyControlConfig () = "%s__controlConfig" | |
35 | + | ||
36 | + | ||
37 | + | func dataControlCfg (neutrinoContract,auctionContract,rpdContract,mathContract,liquidationContract,restContract,nodeRegistryContract,nsbtStakingContract,mediatorContract,surfStakingContract,gnsbtControllerContract,restV2Contract,governanceContract,doraContract) = makeString(["%s%s%s%s%s%s%s%s%s%s%s%s%s%s", neutrinoContract, auctionContract, rpdContract, mathContract, liquidationContract, restContract, nodeRegistryContract, nsbtStakingContract, mediatorContract, surfStakingContract, gnsbtControllerContract, restV2Contract, governanceContract, doraContract], SEP) | |
38 | + | ||
39 | + | ||
4 | 40 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 1000000), 1000000, 100000000) | |
5 | 41 | ||
6 | 42 | ||
19 | 55 | ||
20 | 56 | let isBlocked = valueOrElse(getBoolean(this, "is_blocked"), false) | |
21 | 57 | ||
22 | - | let percentPriceOffset = | |
58 | + | let percentPriceOffset = 1000 | |
23 | 59 | ||
24 | 60 | let pubKeyOracles = valueOrElse(getString(this, "oracles"), "") | |
25 | 61 | ||
26 | 62 | let pubKeyOraclesList = convertJsonArrayToList(pubKeyOracles) | |
27 | 63 | ||
28 | - | let neutrinoAddress = Address(base58' | |
64 | + | let neutrinoAddress = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj') | |
29 | 65 | ||
30 | - | let liquidationAddress = Address(base58' | |
66 | + | let liquidationAddress = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N') | |
31 | 67 | ||
32 | - | let neutrinoAsset = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
68 | + | let neutrinoAsset = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
69 | + | ||
70 | + | let controlContract = this | |
71 | + | ||
72 | + | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
73 | + | ||
74 | + | ||
75 | + | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
76 | + | ||
77 | + | ||
78 | + | let controlCfg = split(getStringOrFail(this, keyControlConfig()), SEP) | |
79 | + | ||
80 | + | let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
33 | 81 | ||
34 | 82 | let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_neutrino"), 0) | |
35 | 83 | ||
212 | 260 | ||
213 | 261 | ||
214 | 262 | @Callable(i) | |
263 | + | func constructorV1 (neutrinoContract,auctionContract,rpdContract,mathContract,liquidationContract,restContract,nodeRegistryContract,nsbtStakingContract,mediatorContract,surfStakingContract,gnsbtControllerContract,restV2Contract,governanceContract,doraContract) = if ((i.caller != this)) | |
264 | + | then throw("permissions denied") | |
265 | + | else [StringEntry(keyControlConfig(), dataControlCfg(neutrinoContract, auctionContract, rpdContract, mathContract, liquidationContract, restContract, nodeRegistryContract, nsbtStakingContract, mediatorContract, surfStakingContract, gnsbtControllerContract, restV2Contract, governanceContract, doraContract))] | |
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | @Callable(i) | |
215 | 270 | func callEmergencyShutdown (reason) = { | |
216 | - | let AutoEmergencyOracleAddress = " | |
271 | + | let AutoEmergencyOracleAddress = "3MtJykN7kE16Y3oh6foo2BZvHY7hCpnMsVu" | |
217 | 272 | let callerAddress = toString(i.caller) | |
218 | - | if ((AutoEmergencyOracleAddress != callerAddress)) | |
219 | - | then throw("caller must be one an emergency oracle") | |
273 | + | if (if ((AutoEmergencyOracleAddress != callerAddress)) | |
274 | + | then (toString(governanceContract) != callerAddress) | |
275 | + | else false) | |
276 | + | then throw("caller must be one an emergency oracle or Governance contract") | |
220 | 277 | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", callerAddress), StringEntry("is_blocked_reason", reason)] | |
221 | 278 | } | |
222 | 279 | ||
295 | 352 | } | |
296 | 353 | ||
297 | 354 | ||
355 | + | ||
356 | + | @Callable(i) | |
357 | + | func updateReservesAndNeutrinoSupply () = { | |
358 | + | func getNumberByKeyInternal (key) = match getInteger(this, key) { | |
359 | + | case a: Int => | |
360 | + | a | |
361 | + | case _ => | |
362 | + | 0 | |
363 | + | } | |
364 | + | ||
365 | + | let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx") | |
366 | + | let newIdx = (idx + 1) | |
367 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", reserve), IntegerEntry("neutrinoSupply", neutrinoSupply), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(reserve, price)), IntegerEntry("deficit", deficit)] | |
368 | + | } | |
369 | + | ||
370 | + | ||
371 | + | ||
372 | + | @Callable(i) | |
373 | + | func wavesBalancesVsPayment () = { | |
374 | + | let b = wavesBalance(this) | |
375 | + | [IntegerEntry("wavesBalance_available", b.available), IntegerEntry("wavesBalance_regular", b.regular), IntegerEntry("wavesBalance_generating", b.generating), IntegerEntry("wavesBalance_effective", b.effective), IntegerEntry("waves_payment", value(i.payments[0]).amount)] | |
376 | + | } | |
377 | + | ||
378 | + | ||
298 | 379 | @Verifier(tx) | |
299 | 380 | func verify () = { | |
300 | - | let pubKeyAdminsList = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
381 | + | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
382 | + | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
301 | 383 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
302 | 384 | then 1 | |
303 | 385 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SEP = "__" | |
5 | + | ||
6 | + | let IdxControlCfgNeutrinoDapp = 1 | |
7 | + | ||
8 | + | let IdxControlCfgAuctionDapp = 2 | |
9 | + | ||
10 | + | let IdxControlCfgRpdDapp = 3 | |
11 | + | ||
12 | + | let IdxControlCfgMathDapp = 4 | |
13 | + | ||
14 | + | let IdxControlCfgLiquidationDapp = 5 | |
15 | + | ||
16 | + | let IdxControlCfgRestDapp = 6 | |
17 | + | ||
18 | + | let IdxControlCfgNodeRegistryDapp = 7 | |
19 | + | ||
20 | + | let IdxControlCfgNsbtStakingDapp = 8 | |
21 | + | ||
22 | + | let IdxControlCfgMediatorDapp = 9 | |
23 | + | ||
24 | + | let IdxControlCfgSurfStakingDapp = 10 | |
25 | + | ||
26 | + | let IdxControlCfgGnsbtControllerDapp = 11 | |
27 | + | ||
28 | + | let IdxControlCfgRestV2Dapp = 12 | |
29 | + | ||
30 | + | let IdxControlCfgGovernanceDapp = 13 | |
31 | + | ||
32 | + | let IdxControlCfgPegProviderDapp = 14 | |
33 | + | ||
34 | + | func keyControlConfig () = "%s__controlConfig" | |
35 | + | ||
36 | + | ||
37 | + | func dataControlCfg (neutrinoContract,auctionContract,rpdContract,mathContract,liquidationContract,restContract,nodeRegistryContract,nsbtStakingContract,mediatorContract,surfStakingContract,gnsbtControllerContract,restV2Contract,governanceContract,doraContract) = makeString(["%s%s%s%s%s%s%s%s%s%s%s%s%s%s", neutrinoContract, auctionContract, rpdContract, mathContract, liquidationContract, restContract, nodeRegistryContract, nsbtStakingContract, mediatorContract, surfStakingContract, gnsbtControllerContract, restV2Contract, governanceContract, doraContract], SEP) | |
38 | + | ||
39 | + | ||
4 | 40 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 1000000), 1000000, 100000000) | |
5 | 41 | ||
6 | 42 | ||
7 | 43 | func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0) | |
8 | 44 | ||
9 | 45 | ||
10 | 46 | func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "") | |
11 | 47 | ||
12 | 48 | ||
13 | 49 | func convertJsonArrayToList (jsonArray) = split(jsonArray, ",") | |
14 | 50 | ||
15 | 51 | ||
16 | 52 | let price = valueOrElse(getInteger(this, "price"), 0) | |
17 | 53 | ||
18 | 54 | let priceIndex = valueOrElse(getInteger(this, "price_index"), 0) | |
19 | 55 | ||
20 | 56 | let isBlocked = valueOrElse(getBoolean(this, "is_blocked"), false) | |
21 | 57 | ||
22 | - | let percentPriceOffset = | |
58 | + | let percentPriceOffset = 1000 | |
23 | 59 | ||
24 | 60 | let pubKeyOracles = valueOrElse(getString(this, "oracles"), "") | |
25 | 61 | ||
26 | 62 | let pubKeyOraclesList = convertJsonArrayToList(pubKeyOracles) | |
27 | 63 | ||
28 | - | let neutrinoAddress = Address(base58' | |
64 | + | let neutrinoAddress = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj') | |
29 | 65 | ||
30 | - | let liquidationAddress = Address(base58' | |
66 | + | let liquidationAddress = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N') | |
31 | 67 | ||
32 | - | let neutrinoAsset = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT' | |
68 | + | let neutrinoAsset = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
69 | + | ||
70 | + | let controlContract = this | |
71 | + | ||
72 | + | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
73 | + | ||
74 | + | ||
75 | + | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
76 | + | ||
77 | + | ||
78 | + | let controlCfg = split(getStringOrFail(this, keyControlConfig()), SEP) | |
79 | + | ||
80 | + | let governanceContract = getContractAddressOrFail(controlCfg, IdxControlCfgGovernanceDapp) | |
33 | 81 | ||
34 | 82 | let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_neutrino"), 0) | |
35 | 83 | ||
36 | 84 | let wavesLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_waves"), 0) | |
37 | 85 | ||
38 | 86 | let reserve = (wavesBalance(neutrinoAddress).regular - wavesLockedBalance) | |
39 | 87 | ||
40 | 88 | let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAsset)).quantity) - assetBalance(neutrinoAddress, neutrinoAsset)) - assetBalance(liquidationAddress, neutrinoAsset)) | |
41 | 89 | ||
42 | 90 | let deficit = (neutrinoSupply - convertWavesToNeutrino(reserve, price)) | |
43 | 91 | ||
44 | 92 | func findPricesInRange (prices) = { | |
45 | 93 | let minPercentBound = 90 | |
46 | 94 | let maxPercentBound = 110 | |
47 | 95 | let p0 = prices[0] | |
48 | 96 | let check0 = if ((0 >= prices[0])) | |
49 | 97 | then [0] | |
50 | 98 | else { | |
51 | 99 | let p01 = ((prices[1] * 100) / p0) | |
52 | 100 | let p02 = ((prices[2] * 100) / p0) | |
53 | 101 | let p03 = ((prices[3] * 100) / p0) | |
54 | 102 | let p04 = ((prices[4] * 100) / p0) | |
55 | 103 | let array1 = if (if ((maxPercentBound > p01)) | |
56 | 104 | then (p01 > minPercentBound) | |
57 | 105 | else false) | |
58 | 106 | then [1, 0] | |
59 | 107 | else [0] | |
60 | 108 | let array2 = if (if ((maxPercentBound > p02)) | |
61 | 109 | then (p02 > minPercentBound) | |
62 | 110 | else false) | |
63 | 111 | then 2 :: array1 | |
64 | 112 | else array1 | |
65 | 113 | let array3 = if (if ((maxPercentBound > p03)) | |
66 | 114 | then (p03 > minPercentBound) | |
67 | 115 | else false) | |
68 | 116 | then 3 :: array2 | |
69 | 117 | else array2 | |
70 | 118 | if (if ((maxPercentBound > p04)) | |
71 | 119 | then (p04 > minPercentBound) | |
72 | 120 | else false) | |
73 | 121 | then 4 :: array3 | |
74 | 122 | else array3 | |
75 | 123 | } | |
76 | 124 | let check1 = if ((size(check0) >= 3)) | |
77 | 125 | then check0 | |
78 | 126 | else { | |
79 | 127 | let p1 = prices[1] | |
80 | 128 | if ((0 >= p1)) | |
81 | 129 | then [1] | |
82 | 130 | else { | |
83 | 131 | let p10 = ((prices[0] * 100) / p1) | |
84 | 132 | let p12 = ((prices[2] * 100) / p1) | |
85 | 133 | let p13 = ((prices[3] * 100) / p1) | |
86 | 134 | let p14 = ((prices[4] * 100) / p1) | |
87 | 135 | let array1 = if (if ((maxPercentBound > p10)) | |
88 | 136 | then (p10 > minPercentBound) | |
89 | 137 | else false) | |
90 | 138 | then [0, 1] | |
91 | 139 | else [1] | |
92 | 140 | let array2 = if (if ((maxPercentBound > p12)) | |
93 | 141 | then (p12 > minPercentBound) | |
94 | 142 | else false) | |
95 | 143 | then 2 :: array1 | |
96 | 144 | else array1 | |
97 | 145 | let array3 = if (if ((maxPercentBound > p13)) | |
98 | 146 | then (p13 > minPercentBound) | |
99 | 147 | else false) | |
100 | 148 | then 3 :: array2 | |
101 | 149 | else array2 | |
102 | 150 | if (if ((maxPercentBound > p14)) | |
103 | 151 | then (p14 > minPercentBound) | |
104 | 152 | else false) | |
105 | 153 | then 4 :: array3 | |
106 | 154 | else array3 | |
107 | 155 | } | |
108 | 156 | } | |
109 | 157 | let check2 = if ((size(check1) >= 3)) | |
110 | 158 | then check1 | |
111 | 159 | else { | |
112 | 160 | let p2 = prices[2] | |
113 | 161 | if ((0 >= p2)) | |
114 | 162 | then [2] | |
115 | 163 | else { | |
116 | 164 | let p20 = ((prices[0] * 100) / p2) | |
117 | 165 | let p21 = ((prices[1] * 100) / p2) | |
118 | 166 | let p23 = ((prices[3] * 100) / p2) | |
119 | 167 | let p24 = ((prices[4] * 100) / p2) | |
120 | 168 | let array1 = if (if ((maxPercentBound > p20)) | |
121 | 169 | then (p20 > minPercentBound) | |
122 | 170 | else false) | |
123 | 171 | then [0, 2] | |
124 | 172 | else [2] | |
125 | 173 | let array2 = if (if ((maxPercentBound > p21)) | |
126 | 174 | then (p21 > minPercentBound) | |
127 | 175 | else false) | |
128 | 176 | then 1 :: array1 | |
129 | 177 | else array1 | |
130 | 178 | let array3 = if (if ((maxPercentBound > p23)) | |
131 | 179 | then (p23 > minPercentBound) | |
132 | 180 | else false) | |
133 | 181 | then 3 :: array2 | |
134 | 182 | else array2 | |
135 | 183 | if (if ((maxPercentBound > p24)) | |
136 | 184 | then (p24 > minPercentBound) | |
137 | 185 | else false) | |
138 | 186 | then 4 :: array3 | |
139 | 187 | else array3 | |
140 | 188 | } | |
141 | 189 | } | |
142 | 190 | let check3 = if ((size(check2) >= 3)) | |
143 | 191 | then check2 | |
144 | 192 | else { | |
145 | 193 | let p3 = prices[3] | |
146 | 194 | if ((0 >= p3)) | |
147 | 195 | then [3] | |
148 | 196 | else { | |
149 | 197 | let p30 = ((prices[0] * 100) / p3) | |
150 | 198 | let p31 = ((prices[1] * 100) / p3) | |
151 | 199 | let p32 = ((prices[2] * 100) / p3) | |
152 | 200 | let p34 = ((prices[4] * 100) / p3) | |
153 | 201 | let array1 = if (if ((maxPercentBound > p30)) | |
154 | 202 | then (p30 > minPercentBound) | |
155 | 203 | else false) | |
156 | 204 | then [0, 3] | |
157 | 205 | else [3] | |
158 | 206 | let array2 = if (if ((maxPercentBound > p31)) | |
159 | 207 | then (p31 > minPercentBound) | |
160 | 208 | else false) | |
161 | 209 | then 1 :: array1 | |
162 | 210 | else array1 | |
163 | 211 | let array3 = if (if ((maxPercentBound > p32)) | |
164 | 212 | then (p32 > minPercentBound) | |
165 | 213 | else false) | |
166 | 214 | then 2 :: array2 | |
167 | 215 | else array2 | |
168 | 216 | if (if ((maxPercentBound > p34)) | |
169 | 217 | then (p34 > minPercentBound) | |
170 | 218 | else false) | |
171 | 219 | then 4 :: array3 | |
172 | 220 | else array3 | |
173 | 221 | } | |
174 | 222 | } | |
175 | 223 | if ((size(check3) >= 3)) | |
176 | 224 | then check3 | |
177 | 225 | else { | |
178 | 226 | let p4 = prices[4] | |
179 | 227 | if ((0 >= p4)) | |
180 | 228 | then [4] | |
181 | 229 | else { | |
182 | 230 | let p40 = ((prices[0] * 100) / p4) | |
183 | 231 | let p41 = ((prices[1] * 100) / p4) | |
184 | 232 | let p42 = ((prices[2] * 100) / p4) | |
185 | 233 | let p43 = ((prices[3] * 100) / p4) | |
186 | 234 | let array1 = if (if ((maxPercentBound > p40)) | |
187 | 235 | then (p40 > minPercentBound) | |
188 | 236 | else false) | |
189 | 237 | then [0, 4] | |
190 | 238 | else [4] | |
191 | 239 | let array2 = if (if ((maxPercentBound > p41)) | |
192 | 240 | then (p41 > minPercentBound) | |
193 | 241 | else false) | |
194 | 242 | then 1 :: array1 | |
195 | 243 | else array1 | |
196 | 244 | let array3 = if (if ((maxPercentBound > p42)) | |
197 | 245 | then (p42 > minPercentBound) | |
198 | 246 | else false) | |
199 | 247 | then 2 :: array2 | |
200 | 248 | else array2 | |
201 | 249 | if (if ((maxPercentBound > p43)) | |
202 | 250 | then (p43 > minPercentBound) | |
203 | 251 | else false) | |
204 | 252 | then 3 :: array3 | |
205 | 253 | else array3 | |
206 | 254 | } | |
207 | 255 | } | |
208 | 256 | } | |
209 | 257 | ||
210 | 258 | ||
211 | 259 | func formattingPriceMsg (price) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(price))) | |
212 | 260 | ||
213 | 261 | ||
214 | 262 | @Callable(i) | |
263 | + | func constructorV1 (neutrinoContract,auctionContract,rpdContract,mathContract,liquidationContract,restContract,nodeRegistryContract,nsbtStakingContract,mediatorContract,surfStakingContract,gnsbtControllerContract,restV2Contract,governanceContract,doraContract) = if ((i.caller != this)) | |
264 | + | then throw("permissions denied") | |
265 | + | else [StringEntry(keyControlConfig(), dataControlCfg(neutrinoContract, auctionContract, rpdContract, mathContract, liquidationContract, restContract, nodeRegistryContract, nsbtStakingContract, mediatorContract, surfStakingContract, gnsbtControllerContract, restV2Contract, governanceContract, doraContract))] | |
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | @Callable(i) | |
215 | 270 | func callEmergencyShutdown (reason) = { | |
216 | - | let AutoEmergencyOracleAddress = " | |
271 | + | let AutoEmergencyOracleAddress = "3MtJykN7kE16Y3oh6foo2BZvHY7hCpnMsVu" | |
217 | 272 | let callerAddress = toString(i.caller) | |
218 | - | if ((AutoEmergencyOracleAddress != callerAddress)) | |
219 | - | then throw("caller must be one an emergency oracle") | |
273 | + | if (if ((AutoEmergencyOracleAddress != callerAddress)) | |
274 | + | then (toString(governanceContract) != callerAddress) | |
275 | + | else false) | |
276 | + | then throw("caller must be one an emergency oracle or Governance contract") | |
220 | 277 | else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", callerAddress), StringEntry("is_blocked_reason", reason)] | |
221 | 278 | } | |
222 | 279 | ||
223 | 280 | ||
224 | 281 | ||
225 | 282 | @Callable(i) | |
226 | 283 | func finalizeCurrentPrice (price1,sign1,price2,sign2,price3,sign3,price4,sign4,price5,sign5) = if (isBlocked) | |
227 | 284 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
228 | 285 | else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0)) | |
229 | 286 | then throw("wait next block") | |
230 | 287 | else if ((pubKeyOraclesList[(height % 5)] != toBase58String(i.callerPublicKey))) | |
231 | 288 | then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + pubKeyOraclesList[(height % 5)])) | |
232 | 289 | else { | |
233 | 290 | let prices = [if (sigVerify_8Kb(formattingPriceMsg(price1), sign1, fromBase58String(pubKeyOraclesList[0]))) | |
234 | 291 | then price1 | |
235 | 292 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price2), sign2, fromBase58String(pubKeyOraclesList[1]))) | |
236 | 293 | then price2 | |
237 | 294 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price3), sign3, fromBase58String(pubKeyOraclesList[2]))) | |
238 | 295 | then price3 | |
239 | 296 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price4), sign4, fromBase58String(pubKeyOraclesList[3]))) | |
240 | 297 | then price4 | |
241 | 298 | else 0, if (sigVerify_8Kb(formattingPriceMsg(price5), sign5, fromBase58String(pubKeyOraclesList[4]))) | |
242 | 299 | then price5 | |
243 | 300 | else 0] | |
244 | 301 | let zeroPriceCount = if ((prices[0] == 0)) | |
245 | 302 | then 1 | |
246 | 303 | else (0 + (if ((prices[1] == 0)) | |
247 | 304 | then 1 | |
248 | 305 | else (0 + (if ((prices[2] == 0)) | |
249 | 306 | then 1 | |
250 | 307 | else (0 + (if ((prices[3] == 0)) | |
251 | 308 | then 1 | |
252 | 309 | else (0 + (if ((prices[4] == 0)) | |
253 | 310 | then 1 | |
254 | 311 | else 0)))))))) | |
255 | 312 | if ((zeroPriceCount >= 3)) | |
256 | 313 | then throw("3 prices or more are equals to 0") | |
257 | 314 | else { | |
258 | 315 | let pricesInRange = findPricesInRange(prices) | |
259 | 316 | let priceProvidingCount = size(pricesInRange) | |
260 | 317 | if ((3 > priceProvidingCount)) | |
261 | 318 | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
262 | 319 | ") + pubKeyOraclesList[0]) + "=") + toString(prices[0])) + " | |
263 | 320 | ") + pubKeyOraclesList[1]) + "=") + toString(prices[1])) + " | |
264 | 321 | ") + pubKeyOraclesList[2]) + "=") + toString(prices[2])) + " | |
265 | 322 | ") + pubKeyOraclesList[3]) + "=") + toString(prices[3])) + " | |
266 | 323 | ") + pubKeyOraclesList[4]) + "=") + toString(prices[4]))) | |
267 | 324 | else { | |
268 | 325 | let sum1 = ((prices[pricesInRange[0]] + prices[pricesInRange[1]]) + prices[pricesInRange[2]]) | |
269 | 326 | let sum2 = if ((priceProvidingCount >= 4)) | |
270 | 327 | then (sum1 + prices[pricesInRange[3]]) | |
271 | 328 | else sum1 | |
272 | 329 | let priceSum = if ((priceProvidingCount >= 5)) | |
273 | 330 | then (sum2 + prices[pricesInRange[4]]) | |
274 | 331 | else sum2 | |
275 | 332 | if ((priceProvidingCount >= 6)) | |
276 | 333 | then throw("Invalid pricesInRange creation") | |
277 | 334 | else { | |
278 | 335 | let newPrice = (priceSum / priceProvidingCount) | |
279 | 336 | if (if ((newPrice >= (price + ((price * percentPriceOffset) / 100)))) | |
280 | 337 | then true | |
281 | 338 | else ((price - ((price * percentPriceOffset) / 100)) >= newPrice)) | |
282 | 339 | then { | |
283 | 340 | let reason = "automatic emergency shutdown because of large price variability" | |
284 | 341 | [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", reason), IntegerEntry((("black_swarm_price" + "_") + toString(height)), newPrice)] | |
285 | 342 | } | |
286 | 343 | else { | |
287 | 344 | let newPriceIndex = (priceIndex + 1) | |
288 | 345 | [IntegerEntry("price", newPrice), IntegerEntry(("price_" + toString(height)), newPrice), IntegerEntry("price_index", newPriceIndex), IntegerEntry(("price_index_" + toString(newPriceIndex)), height), IntegerEntry(("deficit_" + toString(height)), deficit), IntegerEntry(("neutrinoSupply_" + toString(height)), neutrinoSupply), IntegerEntry(("deficit_percent_" + toString(height)), if ((neutrinoSupply != 0)) | |
289 | 346 | then ((deficit * 100) / neutrinoSupply) | |
290 | 347 | else 0)] | |
291 | 348 | } | |
292 | 349 | } | |
293 | 350 | } | |
294 | 351 | } | |
295 | 352 | } | |
296 | 353 | ||
297 | 354 | ||
355 | + | ||
356 | + | @Callable(i) | |
357 | + | func updateReservesAndNeutrinoSupply () = { | |
358 | + | func getNumberByKeyInternal (key) = match getInteger(this, key) { | |
359 | + | case a: Int => | |
360 | + | a | |
361 | + | case _ => | |
362 | + | 0 | |
363 | + | } | |
364 | + | ||
365 | + | let idx = getNumberByKeyInternal("updateReservesAndNeutrinoSupplyIdx") | |
366 | + | let newIdx = (idx + 1) | |
367 | + | [IntegerEntry("updateReservesAndNeutrinoSupplyIdx", newIdx), IntegerEntry("reserve", reserve), IntegerEntry("neutrinoSupply", neutrinoSupply), IntegerEntry("reservesInUsdn", convertWavesToNeutrino(reserve, price)), IntegerEntry("deficit", deficit)] | |
368 | + | } | |
369 | + | ||
370 | + | ||
371 | + | ||
372 | + | @Callable(i) | |
373 | + | func wavesBalancesVsPayment () = { | |
374 | + | let b = wavesBalance(this) | |
375 | + | [IntegerEntry("wavesBalance_available", b.available), IntegerEntry("wavesBalance_regular", b.regular), IntegerEntry("wavesBalance_generating", b.generating), IntegerEntry("wavesBalance_effective", b.effective), IntegerEntry("waves_payment", value(i.payments[0]).amount)] | |
376 | + | } | |
377 | + | ||
378 | + | ||
298 | 379 | @Verifier(tx) | |
299 | 380 | func verify () = { | |
300 | - | let pubKeyAdminsList = ["GXxmZaCigPgJsT6d1cLr8nUXA65nGX8V7FuAzzrY8wQE", "3xumx4hrPpeeoo79HLGbZCgfz95L39ZFdxxwWeSUC2Pu", "D4CqtK5fBsnzRo33ZMhrM7niLseDH2uRoK6weBq2JQ3A", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
381 | + | let pubKeyAdminsListStr = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], SEP) | |
382 | + | let pubKeyAdminsList = split(valueOrElse(getString(controlContract, "%s__multisig"), pubKeyAdminsListStr), SEP) | |
301 | 383 | let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) | |
302 | 384 | then 1 | |
303 | 385 | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) | |
304 | 386 | then 1 | |
305 | 387 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) | |
306 | 388 | then 1 | |
307 | 389 | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3]))) | |
308 | 390 | then 2 | |
309 | 391 | else 0)) | |
310 | 392 | (count >= 3) | |
311 | 393 | } | |
312 | 394 |
github/deemru/w8io/026f985 77.73 ms ◑