tx · uB44RXKFqm3HwYRnSXDQ11gzmRX9ka4q1ZVhhK7KBwW

3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2:  -0.01400000 Waves

2024.02.16 10:30 [2978461] smart account 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2 > SELF 0.00000000 Waves

{ "type": 13, "id": "uB44RXKFqm3HwYRnSXDQ11gzmRX9ka4q1ZVhhK7KBwW", "fee": 1400000, "feeAssetId": null, "timestamp": 1708068618668, "version": 2, "chainId": 84, "sender": "3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2", "senderPublicKey": "8fS13zFL61wF3maPyR7vTayhasoH9StToqd7wGuecHXN", "proofs": [ "bjNxamwVaJdzFA9nGrd2AJug9HMuucpVNtFTTnjqRfAags9LLm46LGvF9omn82CgYxdCQfNJJpQ56u9Pjjxw2HX" ], "script": "base64:BwJkCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIFCgMCAQQSBAoCAgESBQoDAgECEgUKAwISERIECgICARINCgsICAgICAgIAQEBGBIICgYICAgBAgESBAoCCBgSAwoBCDAAA1NFUAICX18ABVdBVkVTAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQISd3hkYW9fZmFjdG9yeS5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUFV0FWRVMFBHVuaXQJANkEAQUBcwAPQURNSU5fTElTVF9TSVpFAAUABlFVT1JVTQADABFUWElEX0JZVEVTX0xFTkdUSAAgARhrZXlBbGxvd2VkVHhJZFZvdGVQcmVmaXgBBHR4SWQJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgIJYWxsb3dUeElkCQDMCAIFBHR4SWQFA25pbAUDU0VQARBrZXlGdWxsQWRtaW5Wb3RlAgZwcmVmaX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mtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwMFCmJ5UHJvcG9zYWwGBQhieUFkbWlucwYFB2J5T3duZXLlX9U6", "height": 2978461, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8obEV2TDj7P5fE1bhzEkQioMWRqSkP3wpgMJbp2aQRru Next: none Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let separator = "__"
5-
6-let chainId = take(drop(this.bytes, 1), 1)
7-
8-let chainIdT = base58'2T'
9-
10-let chainIdW = base58'2W'
11-
12-func mustAddress (i,address) = if ((i.caller == address))
13- then true
14- else throw("permission denied")
15-
16-
17-func mustThis (i) = mustAddress(i, this)
18-
19-
204 let SEP = "__"
215
226 let WAVES = "WAVES"
7054
7155
7256 func genVotesKeysHelper (a,adminAddress) = {
73- let $t014801504 = a
74- let result = $t014801504._1
75- let prefix = $t014801504._2
57+ let $t011971221 = a
58+ let result = $t011971221._1
59+ let prefix = $t011971221._2
7660 $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix)
7761 }
7862
7963
8064 func genVotesKeys (keyPrefix) = {
8165 let adminList = keyAdminAddressList()
82- let $t016511735 = {
66+ let $t013681452 = {
8367 let $l = getAdminsList()
8468 let $s = size($l)
8569 let $acc0 = $Tuple2(nil, keyPrefix)
9377
9478 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
9579 }
96- let result = $t016511735._1
97- let prefix = $t016511735._2
80+ let result = $t013681452._1
81+ let prefix = $t013681452._2
9882 result
9983 }
10084
164148 func keyCalculatorAddress () = "%s__calculatorAddress"
165149
166150
151+func keyLockAddress () = "%s__lockAddress"
152+
153+
167154 func keyPoolsFactoryAddress () = "%s__poolsFactoryAddress"
168155
169156
183170
184171
185172 func keyTreasuryValueByPeriod (period) = makeString(["%s%d", "treasuryValue", toString(period)], SEP)
173+
174+
175+func keyLockDuration () = makeString(["%s", "lockDuration"], SEP)
186176
187177
188178 let calculatorAddressOption = match getString(this, keyCalculatorAddress()) {
320310 func transferAssets (recipientBytes,assetsList,amountsList) = if (onlyCalculator(i))
321311 then {
322312 func addNewTransfer (acc,nextAssetId) = {
323- let $t065416565 = acc
324- let transfers = $t065416565._1
325- let j = $t065416565._2
313+ let $t063646388 = acc
314+ let transfers = $t063646388._1
315+ let j = $t063646388._2
326316 let newTransfer = ScriptTransfer(Address(recipientBytes), amountsList[j], assetsList[j])
327317 let updatedTransfers = (transfers :+ newTransfer)
328318 $Tuple2(updatedTransfers, (j + 1))
329319 }
330320
331- let $t067916872 = {
321+ let $t066146695 = {
332322 let $l = assetsList
333323 let $s = size($l)
334324 let $acc0 = $Tuple2(nil, 0)
342332
343333 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
344334 }
345- let assetsTransfers = $t067916872._1
346- let _lastIndex = $t067916872._2
335+ let assetsTransfers = $t066146695._1
336+ let _lastIndex = $t066146695._2
347337 $Tuple2(assetsTransfers, unit)
348338 }
349339 else $Tuple2(nil, unit)
358348
359349
360350 @Callable(i)
361-func init (lpAssetIdStr,treasuryAddressStr,calculatorAddressStr,powerConfigAddressStr,powerContractAddress,poolsFactoryAddressStr,periodLength,treasuryValue,assets) = {
362- let checkCaller = mustThis(i)
351+func init (lpAssetIdStr,treasuryAddressStr,calculatorAddressStr,lockAddressStr,powerConfigAddressStr,powerContractAddress,poolsFactoryAddressStr,periodLength,lockDuration,treasuryValue,assets) = {
352+ let checkCaller = onlyThis(i)
363353 if ((checkCaller == checkCaller))
364- then $Tuple2([StringEntry(keyLpAssetId(), lpAssetIdStr), StringEntry(keyTreasuryAddress(), treasuryAddressStr), StringEntry(keyCalculatorAddress(), calculatorAddressStr), StringEntry(keyPowerConfigAddress(), powerConfigAddressStr), StringEntry(keyPowerContractAddress(), powerContractAddress), StringEntry(keyPoolsFactoryAddress(), poolsFactoryAddressStr), IntegerEntry(keyPeriodLength(), periodLength), IntegerEntry(keyTreasuryValueByPeriod(0), treasuryValue), IntegerEntry(keyCurrentPeriod(), 0), IntegerEntry(keyStartHeightByPeriod(0), height), StringEntry(keyAssets(), makeString(assets, SEP))], unit)
354+ then $Tuple2([StringEntry(keyLpAssetId(), lpAssetIdStr), StringEntry(keyTreasuryAddress(), treasuryAddressStr), StringEntry(keyCalculatorAddress(), calculatorAddressStr), StringEntry(keyLockAddress(), lockAddressStr), StringEntry(keyPowerConfigAddress(), powerConfigAddressStr), StringEntry(keyPowerContractAddress(), powerContractAddress), StringEntry(keyPoolsFactoryAddress(), poolsFactoryAddressStr), IntegerEntry(keyPeriodLength(), periodLength), IntegerEntry(keyLockDuration(), lockDuration), IntegerEntry(keyTreasuryValueByPeriod(0), treasuryValue), IntegerEntry(keyCurrentPeriod(), 0), IntegerEntry(keyStartHeightByPeriod(0), height), StringEntry(keyAssets(), makeString(assets, SEP))], unit)
365355 else throw("Strict value is not equal to itself.")
366356 }
367357
368358
369359
370360 @Callable(i)
371-func commitAfterStartWithLockRoundFor (contract,child,address,additionalLockRounds,paymentAssetId,paymentAmount) = $Tuple2(nil, invoke(addressFromStringValue(contract), "commitAfterStartWithLockRoundFor", [child, address, additionalLockRounds], [AttachedPayment(paymentAssetId, paymentAmount)]))
361+func commitAfterStartWithLockRoundFor (contract,child,address,additionalLockRounds,paymentAssetId,paymentAmount) = if (onlyCalculator(i))
362+ then $Tuple2(nil, invoke(addressFromStringValue(contract), "commitAfterStartWithLockRoundFor", [child, address, additionalLockRounds], [AttachedPayment(paymentAssetId, paymentAmount)]))
363+ else $Tuple2(nil, unit)
372364
373365
374366
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let separator = "__"
5-
6-let chainId = take(drop(this.bytes, 1), 1)
7-
8-let chainIdT = base58'2T'
9-
10-let chainIdW = base58'2W'
11-
12-func mustAddress (i,address) = if ((i.caller == address))
13- then true
14- else throw("permission denied")
15-
16-
17-func mustThis (i) = mustAddress(i, this)
18-
19-
204 let SEP = "__"
215
226 let WAVES = "WAVES"
237
248 let contractFilename = "wxdao_factory.ride"
259
2610 func wrapErr (s) = ((contractFilename + ": ") + s)
2711
2812
2913 func throwErr (s) = throw(wrapErr(s))
3014
3115
3216 func stringToAssetId (s) = if ((s == WAVES))
3317 then unit
3418 else fromBase58String(s)
3519
3620
3721 let ADMIN_LIST_SIZE = 5
3822
3923 let QUORUM = 3
4024
4125 let TXID_BYTES_LENGTH = 32
4226
4327 func keyAllowedTxIdVotePrefix (txId) = makeString(["%s%s%s", "allowTxId", txId], SEP)
4428
4529
4630 func keyFullAdminVote (prefix,adminAddress) = makeString([prefix, adminAddress], SEP)
4731
4832
4933 func keyAdminAddressList () = makeString(["%s", "adminAddressList"], SEP)
5034
5135
5236 func keyAllowedTxId () = makeString(["%s", "txId"], SEP)
5337
5438
5539 func getAdminVote (prefix,admin) = {
5640 let voteKey = keyFullAdminVote(prefix, admin)
5741 valueOrElse(getInteger(voteKey), 0)
5842 }
5943
6044
6145 func getAdminsList () = match getString(this, keyAdminAddressList()) {
6246 case s: String =>
6347 split(s, SEP)
6448 case _ =>
6549 nil
6650 }
6751
6852
6953 func isInAdminList (address) = containsElement(getAdminsList(), address)
7054
7155
7256 func genVotesKeysHelper (a,adminAddress) = {
73- let $t014801504 = a
74- let result = $t014801504._1
75- let prefix = $t014801504._2
57+ let $t011971221 = a
58+ let result = $t011971221._1
59+ let prefix = $t011971221._2
7660 $Tuple2((result :+ keyFullAdminVote(prefix, adminAddress)), prefix)
7761 }
7862
7963
8064 func genVotesKeys (keyPrefix) = {
8165 let adminList = keyAdminAddressList()
82- let $t016511735 = {
66+ let $t013681452 = {
8367 let $l = getAdminsList()
8468 let $s = size($l)
8569 let $acc0 = $Tuple2(nil, keyPrefix)
8670 func $f0_1 ($a,$i) = if (($i >= $s))
8771 then $a
8872 else genVotesKeysHelper($a, $l[$i])
8973
9074 func $f0_2 ($a,$i) = if (($i >= $s))
9175 then $a
9276 else throw("List size exceeds 5")
9377
9478 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
9579 }
96- let result = $t016511735._1
97- let prefix = $t016511735._2
80+ let result = $t013681452._1
81+ let prefix = $t013681452._2
9882 result
9983 }
10084
10185
10286 func countVotesHelper (result,voteKey) = (result + valueOrElse(getInteger(voteKey), 0))
10387
10488
10589 func countVotes (prefix) = {
10690 let votes = genVotesKeys(prefix)
10791 let $l = votes
10892 let $s = size($l)
10993 let $acc0 = 0
11094 func $f0_1 ($a,$i) = if (($i >= $s))
11195 then $a
11296 else countVotesHelper($a, $l[$i])
11397
11498 func $f0_2 ($a,$i) = if (($i >= $s))
11599 then $a
116100 else throw("List size exceeds 5")
117101
118102 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
119103 }
120104
121105
122106 func clearVotesHelper (result,key) = (result :+ DeleteEntry(key))
123107
124108
125109 func getClearVoteEntries (prefix) = {
126110 let votes = genVotesKeys(prefix)
127111 let $l = votes
128112 let $s = size($l)
129113 let $acc0 = nil
130114 func $f0_1 ($a,$i) = if (($i >= $s))
131115 then $a
132116 else clearVotesHelper($a, $l[$i])
133117
134118 func $f0_2 ($a,$i) = if (($i >= $s))
135119 then $a
136120 else throw("List size exceeds 5")
137121
138122 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
139123 }
140124
141125
142126 func voteINTERNAL (callerAddressString,keyPrefix,minVotes,voteResult) = {
143127 let voteKey = keyFullAdminVote(keyPrefix, callerAddressString)
144128 let adminCurrentVote = getAdminVote(keyPrefix, callerAddressString)
145129 let err = if (!(isInAdminList(callerAddressString)))
146130 then throwErr((("Address: " + callerAddressString) + " not in Admin list"))
147131 else if ((adminCurrentVote == 1))
148132 then throwErr((voteKey + " you already voted"))
149133 else unit
150134 if ((err == err))
151135 then {
152136 let votes = countVotes(keyPrefix)
153137 if (((votes + 1) >= minVotes))
154138 then {
155139 let clearVoteEntries = getClearVoteEntries(keyPrefix)
156140 (clearVoteEntries ++ voteResult)
157141 }
158142 else [IntegerEntry(voteKey, 1)]
159143 }
160144 else throw("Strict value is not equal to itself.")
161145 }
162146
163147
164148 func keyCalculatorAddress () = "%s__calculatorAddress"
165149
166150
151+func keyLockAddress () = "%s__lockAddress"
152+
153+
167154 func keyPoolsFactoryAddress () = "%s__poolsFactoryAddress"
168155
169156
170157 func keyTreasuryAddress () = "%s__treasuryAddress"
171158
172159
173160 func keyLpAssetId () = "%s__lpAssetId"
174161
175162
176163 func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP)
177164
178165
179166 func keyStartHeightByPeriod (period) = makeString(["%s%d", "startHeight", toString(period)], SEP)
180167
181168
182169 func keyPeriodLength () = makeString(["%s", "periodLength"], SEP)
183170
184171
185172 func keyTreasuryValueByPeriod (period) = makeString(["%s%d", "treasuryValue", toString(period)], SEP)
173+
174+
175+func keyLockDuration () = makeString(["%s", "lockDuration"], SEP)
186176
187177
188178 let calculatorAddressOption = match getString(this, keyCalculatorAddress()) {
189179 case s: String =>
190180 addressFromString(s)
191181 case _: Unit =>
192182 unit
193183 case _ =>
194184 throw("Match error")
195185 }
196186
197187 let calculatorAddressOrFail = valueOrErrorMessage(calculatorAddressOption, wrapErr("invalid calculator address"))
198188
199189 func keyPowerConfigAddress () = "%s__powerConfigAddress"
200190
201191
202192 func keyPowerContractAddress () = "%s__powerContractAddress"
203193
204194
205195 func keyAssets () = "%s__assets"
206196
207197
208198 func keyVotingResultAddress () = "contract_voting_result"
209199
210200
211201 func keyProposalAllowBroadcast (address,txId) = ((("proposal_allow_broadcast_" + toString(address)) + "_") + toBase58String(txId))
212202
213203
214204 let configAddressOption = match getString(this, keyPowerConfigAddress()) {
215205 case s: String =>
216206 addressFromString(s)
217207 case _: Unit =>
218208 unit
219209 case _ =>
220210 throw("Match error")
221211 }
222212
223213 let votingResultAddressOption = match configAddressOption {
224214 case a: Address =>
225215 match getString(a, keyVotingResultAddress()) {
226216 case s: String =>
227217 addressFromString(s)
228218 case _: Unit =>
229219 unit
230220 case _ =>
231221 throw("Match error")
232222 }
233223 case _: Unit =>
234224 unit
235225 case _ =>
236226 throw("Match error")
237227 }
238228
239229 let votingResultAddressOrFail = valueOrErrorMessage(votingResultAddressOption, wrapErr("invalid voting result address"))
240230
241231 let lpAssetIdOption = match getString(this, keyLpAssetId()) {
242232 case s: String =>
243233 fromBase58String(s)
244234 case _: Unit =>
245235 unit
246236 case _ =>
247237 throw("Match error")
248238 }
249239
250240 let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId"))
251241
252242 func onlyAddress (i,address) = if ((i.caller == address))
253243 then true
254244 else throwErr("permission denied")
255245
256246
257247 func onlyThis (i) = onlyAddress(i, this)
258248
259249
260250 func onlyCalculator (i) = onlyAddress(i, calculatorAddressOrFail)
261251
262252
263253 @Callable(i)
264254 func stringEntry (key,val) = if (onlyCalculator(i))
265255 then $Tuple2([StringEntry(key, val)], key)
266256 else $Tuple2(nil, unit)
267257
268258
269259
270260 @Callable(i)
271261 func integerEntry (key,val) = if (onlyCalculator(i))
272262 then $Tuple2([IntegerEntry(key, val)], key)
273263 else $Tuple2(nil, unit)
274264
275265
276266
277267 @Callable(i)
278268 func booleanEntry (key,val) = if (onlyCalculator(i))
279269 then $Tuple2([BooleanEntry(key, val)], key)
280270 else $Tuple2(nil, unit)
281271
282272
283273
284274 @Callable(i)
285275 func binaryEntry (key,val) = if (onlyCalculator(i))
286276 then $Tuple2([BinaryEntry(key, val)], key)
287277 else $Tuple2(nil, unit)
288278
289279
290280
291281 @Callable(i)
292282 func deleteEntry (key) = if (onlyCalculator(i))
293283 then $Tuple2([DeleteEntry(key)], key)
294284 else $Tuple2(nil, unit)
295285
296286
297287
298288 @Callable(i)
299289 func reissue (assetId,amount,reissuable) = if (onlyCalculator(i))
300290 then $Tuple2([Reissue(assetId, amount, reissuable)], amount)
301291 else $Tuple2(nil, unit)
302292
303293
304294
305295 @Callable(i)
306296 func burn (assetId,amount) = if (onlyCalculator(i))
307297 then $Tuple2([Burn(assetId, amount)], amount)
308298 else $Tuple2(nil, unit)
309299
310300
311301
312302 @Callable(i)
313303 func transferAsset (recipientBytes,amount,assetId) = if (onlyCalculator(i))
314304 then $Tuple2([ScriptTransfer(Address(recipientBytes), amount, assetId)], amount)
315305 else $Tuple2(nil, unit)
316306
317307
318308
319309 @Callable(i)
320310 func transferAssets (recipientBytes,assetsList,amountsList) = if (onlyCalculator(i))
321311 then {
322312 func addNewTransfer (acc,nextAssetId) = {
323- let $t065416565 = acc
324- let transfers = $t065416565._1
325- let j = $t065416565._2
313+ let $t063646388 = acc
314+ let transfers = $t063646388._1
315+ let j = $t063646388._2
326316 let newTransfer = ScriptTransfer(Address(recipientBytes), amountsList[j], assetsList[j])
327317 let updatedTransfers = (transfers :+ newTransfer)
328318 $Tuple2(updatedTransfers, (j + 1))
329319 }
330320
331- let $t067916872 = {
321+ let $t066146695 = {
332322 let $l = assetsList
333323 let $s = size($l)
334324 let $acc0 = $Tuple2(nil, 0)
335325 func $f0_1 ($a,$i) = if (($i >= $s))
336326 then $a
337327 else addNewTransfer($a, $l[$i])
338328
339329 func $f0_2 ($a,$i) = if (($i >= $s))
340330 then $a
341331 else throw("List size exceeds 10")
342332
343333 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
344334 }
345- let assetsTransfers = $t067916872._1
346- let _lastIndex = $t067916872._2
335+ let assetsTransfers = $t066146695._1
336+ let _lastIndex = $t066146695._2
347337 $Tuple2(assetsTransfers, unit)
348338 }
349339 else $Tuple2(nil, unit)
350340
351341
352342
353343 @Callable(i)
354344 func transferWaves (recipientBytes,amount) = if (onlyCalculator(i))
355345 then $Tuple2([ScriptTransfer(Address(recipientBytes), amount, unit)], amount)
356346 else $Tuple2(nil, unit)
357347
358348
359349
360350 @Callable(i)
361-func init (lpAssetIdStr,treasuryAddressStr,calculatorAddressStr,powerConfigAddressStr,powerContractAddress,poolsFactoryAddressStr,periodLength,treasuryValue,assets) = {
362- let checkCaller = mustThis(i)
351+func init (lpAssetIdStr,treasuryAddressStr,calculatorAddressStr,lockAddressStr,powerConfigAddressStr,powerContractAddress,poolsFactoryAddressStr,periodLength,lockDuration,treasuryValue,assets) = {
352+ let checkCaller = onlyThis(i)
363353 if ((checkCaller == checkCaller))
364- then $Tuple2([StringEntry(keyLpAssetId(), lpAssetIdStr), StringEntry(keyTreasuryAddress(), treasuryAddressStr), StringEntry(keyCalculatorAddress(), calculatorAddressStr), StringEntry(keyPowerConfigAddress(), powerConfigAddressStr), StringEntry(keyPowerContractAddress(), powerContractAddress), StringEntry(keyPoolsFactoryAddress(), poolsFactoryAddressStr), IntegerEntry(keyPeriodLength(), periodLength), IntegerEntry(keyTreasuryValueByPeriod(0), treasuryValue), IntegerEntry(keyCurrentPeriod(), 0), IntegerEntry(keyStartHeightByPeriod(0), height), StringEntry(keyAssets(), makeString(assets, SEP))], unit)
354+ then $Tuple2([StringEntry(keyLpAssetId(), lpAssetIdStr), StringEntry(keyTreasuryAddress(), treasuryAddressStr), StringEntry(keyCalculatorAddress(), calculatorAddressStr), StringEntry(keyLockAddress(), lockAddressStr), StringEntry(keyPowerConfigAddress(), powerConfigAddressStr), StringEntry(keyPowerContractAddress(), powerContractAddress), StringEntry(keyPoolsFactoryAddress(), poolsFactoryAddressStr), IntegerEntry(keyPeriodLength(), periodLength), IntegerEntry(keyLockDuration(), lockDuration), IntegerEntry(keyTreasuryValueByPeriod(0), treasuryValue), IntegerEntry(keyCurrentPeriod(), 0), IntegerEntry(keyStartHeightByPeriod(0), height), StringEntry(keyAssets(), makeString(assets, SEP))], unit)
365355 else throw("Strict value is not equal to itself.")
366356 }
367357
368358
369359
370360 @Callable(i)
371-func commitAfterStartWithLockRoundFor (contract,child,address,additionalLockRounds,paymentAssetId,paymentAmount) = $Tuple2(nil, invoke(addressFromStringValue(contract), "commitAfterStartWithLockRoundFor", [child, address, additionalLockRounds], [AttachedPayment(paymentAssetId, paymentAmount)]))
361+func commitAfterStartWithLockRoundFor (contract,child,address,additionalLockRounds,paymentAssetId,paymentAmount) = if (onlyCalculator(i))
362+ then $Tuple2(nil, invoke(addressFromStringValue(contract), "commitAfterStartWithLockRoundFor", [child, address, additionalLockRounds], [AttachedPayment(paymentAssetId, paymentAmount)]))
363+ else $Tuple2(nil, unit)
372364
373365
374366
375367 @Callable(i)
376368 func call (function,args) = {
377369 let result = reentrantInvoke(calculatorAddressOrFail, function, [i.callerPublicKey, args], i.payments)
378370 $Tuple2(nil, result)
379371 }
380372
381373
382374
383375 @Callable(i)
384376 func voteForTxId (txId) = {
385377 let callerAddressString = toBase58String(i.caller.bytes)
386378 let keyPrefix = keyAllowedTxIdVotePrefix(txId)
387379 let result = [StringEntry(keyAllowedTxId(), txId)]
388380 let allowedTxIdOption = getString(this, keyAllowedTxId())
389381 let err = [if ((size(fromBase58String(txId)) == TXID_BYTES_LENGTH))
390382 then true
391383 else throwErr((txId + " is not valid txId")), if (if ((allowedTxIdOption == unit))
392384 then true
393385 else (value(allowedTxIdOption) != txId))
394386 then true
395387 else throwErr((txId + " is already allowed"))]
396388 if ((err == err))
397389 then voteINTERNAL(callerAddressString, keyPrefix, QUORUM, result)
398390 else throw("Strict value is not equal to itself.")
399391 }
400392
401393
402394 @Verifier(tx)
403395 func verify () = {
404396 let byProposal = match votingResultAddressOption {
405397 case proposalAddress: Address =>
406398 valueOrElse(getBoolean(proposalAddress, keyProposalAllowBroadcast(this, tx.id)), false)
407399 case _ =>
408400 false
409401 }
410402 let byAdmins = (tx.id == fromBase58String(valueOrElse(getString(this, keyAllowedTxId()), "")))
411403 let byOwner = if ((size(getAdminsList()) >= QUORUM))
412404 then false
413405 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
414406 if (if (byProposal)
415407 then true
416408 else byAdmins)
417409 then true
418410 else byOwner
419411 }
420412

github/deemru/w8io/026f985 
65.68 ms