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:AAIEAAAAAAAAACsIAhIQCg4ICAgICAgICAgICAgICBIDCgEIEgwKCgECAQIBAgECAQISABIAAAAAKgAAAAADU0VQAgAAAAJfXwAAAAAZSWR4Q29udHJvbENmZ05ldXRyaW5vRGFwcAAAAAAAAAAAAQAAAAAYSWR4Q29udHJvbENmZ0F1Y3Rpb25EYXBwAAAAAAAAAAACAAAAABRJZHhDb250cm9sQ2ZnUnBkRGFwcAAAAAAAAAAAAwAAAAAVSWR4Q29udHJvbENmZ01hdGhEYXBwAAAAAAAAAAAEAAAAABxJZHhDb250cm9sQ2ZnTGlxdWlkYXRpb25EYXBwAAAAAAAAAAAFAAAAABVJZHhDb250cm9sQ2ZnUmVzdERhcHAAAAAAAAAAAAYAAAAAHUlkeENvbnRyb2xDZmd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AA7qmkBc=", "height": 2443254, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8MMAPLgc1dx9wweySh4pAuwYek7XLArWYsFvws4y56t8 Next: AphZ2C6CffKoiMCNuHknyRgdEQnVcgvTaif8ukqbuAfS Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# 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+
440 func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 1000000), 1000000, 100000000)
541
642
1955
2056 let isBlocked = valueOrElse(getBoolean(this, "is_blocked"), false)
2157
22-let percentPriceOffset = 25
58+let percentPriceOffset = 1000
2359
2460 let pubKeyOracles = valueOrElse(getString(this, "oracles"), "")
2561
2662 let pubKeyOraclesList = convertJsonArrayToList(pubKeyOracles)
2763
28-let neutrinoAddress = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we')
64+let neutrinoAddress = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj')
2965
30-let liquidationAddress = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62')
66+let liquidationAddress = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N')
3167
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)
3381
3482 let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_neutrino"), 0)
3583
212260
213261
214262 @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)
215270 func callEmergencyShutdown (reason) = {
216- let AutoEmergencyOracleAddress = "3N65UDbSkK72XdSgH3NhvJ8HaH57x8VmoW3"
271+ let AutoEmergencyOracleAddress = "3MtJykN7kE16Y3oh6foo2BZvHY7hCpnMsVu"
217272 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")
220277 else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", callerAddress), StringEntry("is_blocked_reason", reason)]
221278 }
222279
295352 }
296353
297354
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+
298379 @Verifier(tx)
299380 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)
301383 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
302384 then 1
303385 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# 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+
440 func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, 1000000), 1000000, 100000000)
541
642
743 func getNumberByAddressAndKey (address,key) = valueOrElse(getInteger(addressFromStringValue(address), key), 0)
844
945
1046 func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "")
1147
1248
1349 func convertJsonArrayToList (jsonArray) = split(jsonArray, ",")
1450
1551
1652 let price = valueOrElse(getInteger(this, "price"), 0)
1753
1854 let priceIndex = valueOrElse(getInteger(this, "price_index"), 0)
1955
2056 let isBlocked = valueOrElse(getBoolean(this, "is_blocked"), false)
2157
22-let percentPriceOffset = 25
58+let percentPriceOffset = 1000
2359
2460 let pubKeyOracles = valueOrElse(getString(this, "oracles"), "")
2561
2662 let pubKeyOraclesList = convertJsonArrayToList(pubKeyOracles)
2763
28-let neutrinoAddress = Address(base58'3Mzbx34Ex5rRbn39vUHx9kiwh3nneF8S5we')
64+let neutrinoAddress = Address(base58'3N9be2mwrA52WJho6DiesZkk4351GvpnWuj')
2965
30-let liquidationAddress = Address(base58'3N5nmMvMH8o3RPEyCKCaoWahBTYTexnZy62')
66+let liquidationAddress = Address(base58'3N24ZPUAMhFm76N3vbNiiDtFqfUnmBHTc5N')
3167
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)
3381
3482 let neutrinoLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_neutrino"), 0)
3583
3684 let wavesLockedBalance = valueOrElse(getInteger(neutrinoAddress, "balance_lock_waves"), 0)
3785
3886 let reserve = (wavesBalance(neutrinoAddress).regular - wavesLockedBalance)
3987
4088 let neutrinoSupply = (((neutrinoLockedBalance + value(assetInfo(neutrinoAsset)).quantity) - assetBalance(neutrinoAddress, neutrinoAsset)) - assetBalance(liquidationAddress, neutrinoAsset))
4189
4290 let deficit = (neutrinoSupply - convertWavesToNeutrino(reserve, price))
4391
4492 func findPricesInRange (prices) = {
4593 let minPercentBound = 90
4694 let maxPercentBound = 110
4795 let p0 = prices[0]
4896 let check0 = if ((0 >= prices[0]))
4997 then [0]
5098 else {
5199 let p01 = ((prices[1] * 100) / p0)
52100 let p02 = ((prices[2] * 100) / p0)
53101 let p03 = ((prices[3] * 100) / p0)
54102 let p04 = ((prices[4] * 100) / p0)
55103 let array1 = if (if ((maxPercentBound > p01))
56104 then (p01 > minPercentBound)
57105 else false)
58106 then [1, 0]
59107 else [0]
60108 let array2 = if (if ((maxPercentBound > p02))
61109 then (p02 > minPercentBound)
62110 else false)
63111 then 2 :: array1
64112 else array1
65113 let array3 = if (if ((maxPercentBound > p03))
66114 then (p03 > minPercentBound)
67115 else false)
68116 then 3 :: array2
69117 else array2
70118 if (if ((maxPercentBound > p04))
71119 then (p04 > minPercentBound)
72120 else false)
73121 then 4 :: array3
74122 else array3
75123 }
76124 let check1 = if ((size(check0) >= 3))
77125 then check0
78126 else {
79127 let p1 = prices[1]
80128 if ((0 >= p1))
81129 then [1]
82130 else {
83131 let p10 = ((prices[0] * 100) / p1)
84132 let p12 = ((prices[2] * 100) / p1)
85133 let p13 = ((prices[3] * 100) / p1)
86134 let p14 = ((prices[4] * 100) / p1)
87135 let array1 = if (if ((maxPercentBound > p10))
88136 then (p10 > minPercentBound)
89137 else false)
90138 then [0, 1]
91139 else [1]
92140 let array2 = if (if ((maxPercentBound > p12))
93141 then (p12 > minPercentBound)
94142 else false)
95143 then 2 :: array1
96144 else array1
97145 let array3 = if (if ((maxPercentBound > p13))
98146 then (p13 > minPercentBound)
99147 else false)
100148 then 3 :: array2
101149 else array2
102150 if (if ((maxPercentBound > p14))
103151 then (p14 > minPercentBound)
104152 else false)
105153 then 4 :: array3
106154 else array3
107155 }
108156 }
109157 let check2 = if ((size(check1) >= 3))
110158 then check1
111159 else {
112160 let p2 = prices[2]
113161 if ((0 >= p2))
114162 then [2]
115163 else {
116164 let p20 = ((prices[0] * 100) / p2)
117165 let p21 = ((prices[1] * 100) / p2)
118166 let p23 = ((prices[3] * 100) / p2)
119167 let p24 = ((prices[4] * 100) / p2)
120168 let array1 = if (if ((maxPercentBound > p20))
121169 then (p20 > minPercentBound)
122170 else false)
123171 then [0, 2]
124172 else [2]
125173 let array2 = if (if ((maxPercentBound > p21))
126174 then (p21 > minPercentBound)
127175 else false)
128176 then 1 :: array1
129177 else array1
130178 let array3 = if (if ((maxPercentBound > p23))
131179 then (p23 > minPercentBound)
132180 else false)
133181 then 3 :: array2
134182 else array2
135183 if (if ((maxPercentBound > p24))
136184 then (p24 > minPercentBound)
137185 else false)
138186 then 4 :: array3
139187 else array3
140188 }
141189 }
142190 let check3 = if ((size(check2) >= 3))
143191 then check2
144192 else {
145193 let p3 = prices[3]
146194 if ((0 >= p3))
147195 then [3]
148196 else {
149197 let p30 = ((prices[0] * 100) / p3)
150198 let p31 = ((prices[1] * 100) / p3)
151199 let p32 = ((prices[2] * 100) / p3)
152200 let p34 = ((prices[4] * 100) / p3)
153201 let array1 = if (if ((maxPercentBound > p30))
154202 then (p30 > minPercentBound)
155203 else false)
156204 then [0, 3]
157205 else [3]
158206 let array2 = if (if ((maxPercentBound > p31))
159207 then (p31 > minPercentBound)
160208 else false)
161209 then 1 :: array1
162210 else array1
163211 let array3 = if (if ((maxPercentBound > p32))
164212 then (p32 > minPercentBound)
165213 else false)
166214 then 2 :: array2
167215 else array2
168216 if (if ((maxPercentBound > p34))
169217 then (p34 > minPercentBound)
170218 else false)
171219 then 4 :: array3
172220 else array3
173221 }
174222 }
175223 if ((size(check3) >= 3))
176224 then check3
177225 else {
178226 let p4 = prices[4]
179227 if ((0 >= p4))
180228 then [4]
181229 else {
182230 let p40 = ((prices[0] * 100) / p4)
183231 let p41 = ((prices[1] * 100) / p4)
184232 let p42 = ((prices[2] * 100) / p4)
185233 let p43 = ((prices[3] * 100) / p4)
186234 let array1 = if (if ((maxPercentBound > p40))
187235 then (p40 > minPercentBound)
188236 else false)
189237 then [0, 4]
190238 else [4]
191239 let array2 = if (if ((maxPercentBound > p41))
192240 then (p41 > minPercentBound)
193241 else false)
194242 then 1 :: array1
195243 else array1
196244 let array3 = if (if ((maxPercentBound > p42))
197245 then (p42 > minPercentBound)
198246 else false)
199247 then 2 :: array2
200248 else array2
201249 if (if ((maxPercentBound > p43))
202250 then (p43 > minPercentBound)
203251 else false)
204252 then 3 :: array3
205253 else array3
206254 }
207255 }
208256 }
209257
210258
211259 func formattingPriceMsg (price) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(height)) + "_") + toString(price)))
212260
213261
214262 @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)
215270 func callEmergencyShutdown (reason) = {
216- let AutoEmergencyOracleAddress = "3N65UDbSkK72XdSgH3NhvJ8HaH57x8VmoW3"
271+ let AutoEmergencyOracleAddress = "3MtJykN7kE16Y3oh6foo2BZvHY7hCpnMsVu"
217272 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")
220277 else [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", callerAddress), StringEntry("is_blocked_reason", reason)]
221278 }
222279
223280
224281
225282 @Callable(i)
226283 func finalizeCurrentPrice (price1,sign1,price2,sign2,price3,sign3,price4,sign4,price5,sign5) = if (isBlocked)
227284 then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles")
228285 else if ((valueOrElse(getInteger(this, ("price_" + toString(height))), 0) != 0))
229286 then throw("wait next block")
230287 else if ((pubKeyOraclesList[(height % 5)] != toBase58String(i.callerPublicKey)))
231288 then throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + pubKeyOraclesList[(height % 5)]))
232289 else {
233290 let prices = [if (sigVerify_8Kb(formattingPriceMsg(price1), sign1, fromBase58String(pubKeyOraclesList[0])))
234291 then price1
235292 else 0, if (sigVerify_8Kb(formattingPriceMsg(price2), sign2, fromBase58String(pubKeyOraclesList[1])))
236293 then price2
237294 else 0, if (sigVerify_8Kb(formattingPriceMsg(price3), sign3, fromBase58String(pubKeyOraclesList[2])))
238295 then price3
239296 else 0, if (sigVerify_8Kb(formattingPriceMsg(price4), sign4, fromBase58String(pubKeyOraclesList[3])))
240297 then price4
241298 else 0, if (sigVerify_8Kb(formattingPriceMsg(price5), sign5, fromBase58String(pubKeyOraclesList[4])))
242299 then price5
243300 else 0]
244301 let zeroPriceCount = if ((prices[0] == 0))
245302 then 1
246303 else (0 + (if ((prices[1] == 0))
247304 then 1
248305 else (0 + (if ((prices[2] == 0))
249306 then 1
250307 else (0 + (if ((prices[3] == 0))
251308 then 1
252309 else (0 + (if ((prices[4] == 0))
253310 then 1
254311 else 0))))))))
255312 if ((zeroPriceCount >= 3))
256313 then throw("3 prices or more are equals to 0")
257314 else {
258315 let pricesInRange = findPricesInRange(prices)
259316 let priceProvidingCount = size(pricesInRange)
260317 if ((3 > priceProvidingCount))
261318 then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + "
262319 ") + pubKeyOraclesList[0]) + "=") + toString(prices[0])) + "
263320 ") + pubKeyOraclesList[1]) + "=") + toString(prices[1])) + "
264321 ") + pubKeyOraclesList[2]) + "=") + toString(prices[2])) + "
265322 ") + pubKeyOraclesList[3]) + "=") + toString(prices[3])) + "
266323 ") + pubKeyOraclesList[4]) + "=") + toString(prices[4])))
267324 else {
268325 let sum1 = ((prices[pricesInRange[0]] + prices[pricesInRange[1]]) + prices[pricesInRange[2]])
269326 let sum2 = if ((priceProvidingCount >= 4))
270327 then (sum1 + prices[pricesInRange[3]])
271328 else sum1
272329 let priceSum = if ((priceProvidingCount >= 5))
273330 then (sum2 + prices[pricesInRange[4]])
274331 else sum2
275332 if ((priceProvidingCount >= 6))
276333 then throw("Invalid pricesInRange creation")
277334 else {
278335 let newPrice = (priceSum / priceProvidingCount)
279336 if (if ((newPrice >= (price + ((price * percentPriceOffset) / 100))))
280337 then true
281338 else ((price - ((price * percentPriceOffset) / 100)) >= newPrice))
282339 then {
283340 let reason = "automatic emergency shutdown because of large price variability"
284341 [BooleanEntry("is_blocked", true), StringEntry("is_blocked_caller", toString(this)), StringEntry("is_blocked_reason", reason), IntegerEntry((("black_swarm_price" + "_") + toString(height)), newPrice)]
285342 }
286343 else {
287344 let newPriceIndex = (priceIndex + 1)
288345 [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))
289346 then ((deficit * 100) / neutrinoSupply)
290347 else 0)]
291348 }
292349 }
293350 }
294351 }
295352 }
296353
297354
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+
298379 @Verifier(tx)
299380 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)
301383 let count = ((((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
302384 then 1
303385 else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
304386 then 1
305387 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
306388 then 1
307389 else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[3], fromBase58String(pubKeyAdminsList[3])))
308390 then 2
309391 else 0))
310392 (count >= 3)
311393 }
312394

github/deemru/w8io/026f985 
77.73 ms