tx · 8MKav2rn1NUcv3tZgZwrCg8bSPQ92ATYwMXDyyvTPTqM

3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T:  -0.02300000 Waves

2022.09.12 13:15 [2225748] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves

{ "type": 13, "id": "8MKav2rn1NUcv3tZgZwrCg8bSPQ92ATYwMXDyyvTPTqM", "fee": 2300000, "feeAssetId": null, "timestamp": 1662977768726, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "3cJP6LNc4XUbit88pF5AZ8vydy7oDmxPXpfXiWqM2sqWBEB1RCQrydS1Zd7nnMVWRnMpVqpznBVGqfb9pZgErktK" ], "script": "base64:AAIFAAAAAAAAAEAIAhINCgsICAgICAgBCAEIARIDCgEBEgQKAggIEgUKAwgIBBIECgIICBIDCgEBEgMKAQESBAoCCAgSAwoBCBIAAAAAJAAAAAAJc2VwYXJhdG9yAgAAAAJfXwAAAAAMa2V5RmVlQW1vdW50CQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAADZmVlBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAOa2V5VXNkbkFzc2V0SWQJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAt1c2RuQXNzZXRJZAUAAAADbmlsBQAAAAlzZXBhcmF0b3IAAAAADmtleUVwb2NoTGVuZ3RoCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAALZXBvY2hMZW5ndGgFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAABFrZXlGaW5hbGl6ZVJld2FyZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAADmZpbmFsaXplUmV3YXJkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAMa2V5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AAgUAAAAHY2hlY2tQTQUAAAAHY2hlY2tQTQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAJYAAAAAQkBAAAABXZhbHVlAAAAAQUAAAACcG0JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkBAAAAGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAAAAAUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5ojZuIA==", "chainId": 84, "height": 2225748, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8y85ZrncL4p65aih76BGhm1LVsVxLm514RftSrs6Q1rT Next: 8PNFMSFik4u3es5veAJi7nZdGpmqVvDmWR7C4TaGgmga Diff:
OldNewDifferences
185185 then true
186186 else throw("invalid fee asset"), if ((payment.amount == value(getInteger(keyFeeAmount))))
187187 then true
188- else throw("invalid fee amount"), if (if (isManager(i))
189- then true
190- else (priceAssetId == value(getString(keyUsdnAssetId))))
191- then true
192- else throw("priceAssetId is not USDN"), if ((getInteger(keyInListAssetId(amountAssetId, priceAssetId)) == unit))
188+ else throw("invalid fee amount"), if ((getInteger(keyInListAssetId(amountAssetId, priceAssetId)) == unit))
193189 then true
194190 else throw("already in voting list"), if (!(valueOrElse(getBoolean(votingEmissionContract, keyInList(pool)), false)))
195191 then true
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let separator = "__"
55
66 let keyFeeAmount = makeString(["%s", "fee"], separator)
77
88 let keyUsdnAssetId = makeString(["%s", "usdnAssetId"], separator)
99
1010 let keyEpochLength = makeString(["%s", "epochLength"], separator)
1111
1212 let keyFinalizeReward = makeString(["%s", "finalizeReward"], separator)
1313
1414 let keyWxAssetId = makeString(["%s", "wxAssetId"], separator)
1515
1616 let keyAssetsStoreContract = makeString(["%s", "assetsStoreContract"], separator)
1717
1818 let keyUserPoolContract = makeString(["%s", "userPoolContract"], separator)
1919
2020 let keyEmissionContract = makeString(["%s", "emissionContract"], separator)
2121
2222 let keyBoostingContract = makeString(["%s", "boostingContract"], separator)
2323
2424 let keyFactoryContract = makeString(["%s", "factoryContract"], separator)
2525
2626 let keyVotingEmissionContract = makeString(["%s", "votingEmissionContract"], separator)
2727
2828 let keyThreshold = makeString(["%s", "votingThreshold"], separator)
2929
3030 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), (key + " is not defined"))
3131
3232
3333 func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), (key + " is not defined"))
3434
3535
3636 func keyInListAssetId (amountAssetId,priceAssetId) = makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator)
3737
3838
3939 func keySuggestIndex (amountAssetId,priceAssetId) = makeString(["%s%s%s", "suggestIndex", amountAssetId, priceAssetId], separator)
4040
4141
4242 func keyStartHeight (amountAssetId,priceAssetId,suggestIndex) = makeString(["%s%s%s%d", "startHeight", amountAssetId, priceAssetId, toString(suggestIndex)], separator)
4343
4444
4545 func keyVotingResult (amountAssetId,priceAssetId,suggestIndex) = makeString(["%s%s%s%d", "votingResult", amountAssetId, priceAssetId, toString(suggestIndex)], separator)
4646
4747
4848 func totalVotes (totalYes,totalNo) = makeString(["%d%d", totalYes, totalNo], separator)
4949
5050
5151 func keyVote (amountAssetId,priceAssetId,suggestIndex,voterAddress) = makeString(["%s%s%s%d%s", "vote", amountAssetId, priceAssetId, toString(suggestIndex), voterAddress], separator)
5252
5353
5454 func keyVoteValue (gwxAmount,vote) = {
5555 let key = if (vote)
5656 then makeString(["%d%s", gwxAmount, "yes"], separator)
5757 else makeString(["%d%s", gwxAmount, "no"], separator)
5858 key
5959 }
6060
6161
6262 func keyInList (pool) = {
6363 let $t024632503 = pool
6464 let amountAssetId = $t024632503._1
6565 let priceAssetId = $t024632503._2
6666 makeString(["%s%s%s", "inList", amountAssetId, priceAssetId], separator)
6767 }
6868
6969
7070 func keyManagerPublicKey () = "%s__managerPublicKey"
7171
7272
7373 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
7474
7575
7676 let assetsStoreContract = addressFromStringValue(getStringOrFail(keyAssetsStoreContract))
7777
7878 let boostingContract = addressFromStringValue(getStringOrFail(keyBoostingContract))
7979
8080 let emissionContract = addressFromStringValue(getStringOrFail(keyEmissionContract))
8181
8282 let factoryContract = addressFromStringValue(getStringOrFail(keyFactoryContract))
8383
8484 let userPoolContract = addressFromStringValue(getStringOrFail(keyUserPoolContract))
8585
8686 let votingEmissionContract = addressFromStringValue(getStringOrFail(keyVotingEmissionContract))
8787
8888 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
8989 case s: String =>
9090 fromBase58String(s)
9191 case _: Unit =>
9292 unit
9393 case _ =>
9494 throw("Match error")
9595 }
9696
9797
9898 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
9999 case s: String =>
100100 fromBase58String(s)
101101 case _: Unit =>
102102 unit
103103 case _ =>
104104 throw("Match error")
105105 }
106106
107107
108108 func isManager (i) = match managerPublicKeyOrUnit() {
109109 case pk: ByteVector =>
110110 (i.callerPublicKey == pk)
111111 case _: Unit =>
112112 (i.caller == this)
113113 case _ =>
114114 throw("Match error")
115115 }
116116
117117
118118 func mustManager (i) = if (isManager(i))
119119 then true
120120 else throw("permission denied")
121121
122122
123123 func asInt (val) = match val {
124124 case valInt: Int =>
125125 valInt
126126 case _ =>
127127 throw("failed to cast into Integer")
128128 }
129129
130130
131131 @Callable(i)
132132 func constructor (assetsStoreContractPrm,boostingContractPrm,emissionContractPrm,factoryContractPrm,userPoolContractPrm,votingEmissionContractPrm,feeAmountPrm,wxAssetIdPrm,votingDurationPrm,usdnAssetIdPrm,finalizeRewardPrm) = {
133133 let checks = [mustManager(i), if (isDefined(addressFromString(assetsStoreContractPrm)))
134134 then true
135135 else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(boostingContractPrm)))
136136 then true
137137 else throw("Invalid boosting contract address"), if (isDefined(addressFromString(userPoolContractPrm)))
138138 then true
139139 else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(emissionContractPrm)))
140140 then true
141141 else throw("Invalid emission contract address"), if (isDefined(addressFromString(factoryContractPrm)))
142142 then true
143143 else throw("Invalid factory contract address"), if ((feeAmountPrm >= 0))
144144 then true
145145 else throw("Invalid fee amount"), if ((votingDurationPrm > 0))
146146 then true
147147 else throw("Invalid voting duration"), if ((finalizeRewardPrm >= 0))
148148 then true
149149 else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(wxAssetIdPrm))))
150150 then true
151151 else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(usdnAssetIdPrm))))
152152 then true
153153 else throw("Invalid USDN asset ID")]
154154 if ((checks == checks))
155155 then $Tuple2([StringEntry(keyAssetsStoreContract, assetsStoreContractPrm), StringEntry(keyBoostingContract, boostingContractPrm), StringEntry(keyEmissionContract, emissionContractPrm), StringEntry(keyFactoryContract, factoryContractPrm), StringEntry(keyUserPoolContract, userPoolContractPrm), StringEntry(keyVotingEmissionContract, votingEmissionContractPrm), IntegerEntry(keyFeeAmount, feeAmountPrm), IntegerEntry(keyEpochLength, votingDurationPrm), IntegerEntry(keyFinalizeReward, finalizeRewardPrm), StringEntry(keyWxAssetId, wxAssetIdPrm), StringEntry(keyUsdnAssetId, usdnAssetIdPrm)], unit)
156156 else throw("Strict value is not equal to itself.")
157157 }
158158
159159
160160
161161 @Callable(i)
162162 func constructorV2 (threshold) = {
163163 let checks = [mustManager(i), if ((threshold > 0))
164164 then true
165165 else throw("invalid threshold")]
166166 if ((checks == checks))
167167 then $Tuple2([IntegerEntry(keyThreshold, threshold)], unit)
168168 else throw("Strict value is not equal to itself.")
169169 }
170170
171171
172172
173173 @Callable(i)
174174 func suggest (amountAssetId,priceAssetId) = {
175175 let pool = $Tuple2(amountAssetId, priceAssetId)
176176 let payment = value(i.payments[0])
177177 let info = valueOrErrorMessage(assetInfo(fromBase58String(amountAssetId)), "invalid amountAssetId ID")
178178 let checks = [if (if (isManager(i))
179179 then true
180180 else (info.issuer == i.caller))
181181 then true
182182 else throw("asset can only be suggested by its issuer"), if ((info.scripted == false))
183183 then true
184184 else throw("asset is smart"), if ((toBase58String(value(payment.assetId)) == value(getString(keyWxAssetId))))
185185 then true
186186 else throw("invalid fee asset"), if ((payment.amount == value(getInteger(keyFeeAmount))))
187187 then true
188- else throw("invalid fee amount"), if (if (isManager(i))
189- then true
190- else (priceAssetId == value(getString(keyUsdnAssetId))))
191- then true
192- else throw("priceAssetId is not USDN"), if ((getInteger(keyInListAssetId(amountAssetId, priceAssetId)) == unit))
188+ else throw("invalid fee amount"), if ((getInteger(keyInListAssetId(amountAssetId, priceAssetId)) == unit))
193189 then true
194190 else throw("already in voting list"), if (!(valueOrElse(getBoolean(votingEmissionContract, keyInList(pool)), false)))
195191 then true
196192 else throw("pool is in emission voting list")]
197193 if ((checks == checks))
198194 then {
199195 let ensureActive = match invoke(userPoolContract, "statusREADONLY", [amountAssetId, priceAssetId], nil) {
200196 case s: String =>
201197 if ((s == "active"))
202198 then true
203199 else throw("user pool is not active")
204200 case _ =>
205201 throw("user pool is not active")
206202 }
207203 if ((ensureActive == ensureActive))
208204 then {
209205 let ensureAmountAssetVerified = if (isManager(i))
210206 then unit
211207 else {
212208 let inv = match invoke(assetsStoreContract, "isVerifiedREADONLY", [amountAssetId], nil) {
213209 case b: Boolean =>
214210 if (b)
215211 then true
216212 else throw("asset is not verified")
217213 case _ =>
218214 throw("asset is not verified")
219215 }
220216 if ((inv == inv))
221217 then unit
222218 else throw("Strict value is not equal to itself.")
223219 }
224220 if ((ensureAmountAssetVerified == ensureAmountAssetVerified))
225221 then {
226222 let burnFeeInv = invoke(emissionContract, "burn", nil, [AttachedPayment(payment.assetId, payment.amount)])
227223 if ((burnFeeInv == burnFeeInv))
228224 then {
229225 let newSuggestIndex = match getInteger(keySuggestIndex(amountAssetId, priceAssetId)) {
230226 case int: Int =>
231227 (int + 1)
232228 case _ =>
233229 0
234230 }
235231 $Tuple2([IntegerEntry(keyInListAssetId(amountAssetId, priceAssetId), newSuggestIndex), IntegerEntry(keyStartHeight(amountAssetId, priceAssetId, newSuggestIndex), height), StringEntry(keyVotingResult(amountAssetId, priceAssetId, newSuggestIndex), totalVotes("0", "0")), IntegerEntry(keySuggestIndex(amountAssetId, priceAssetId), newSuggestIndex)], unit)
236232 }
237233 else throw("Strict value is not equal to itself.")
238234 }
239235 else throw("Strict value is not equal to itself.")
240236 }
241237 else throw("Strict value is not equal to itself.")
242238 }
243239 else throw("Strict value is not equal to itself.")
244240 }
245241
246242
247243
248244 @Callable(i)
249245 func vote (amountAssetId,priceAssetId,inFavor) = {
250246 let suggestIndex = value(getInteger(keyInListAssetId(amountAssetId, priceAssetId)))
251247 let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId, suggestIndex))) + value(getInteger(keyEpochLength)))
252248 let checks = [if (isDefined(getInteger(keyInListAssetId(amountAssetId, priceAssetId))))
253249 then true
254250 else throw("the token isn't on the voting list"), if ((votingFinishHeight > height))
255251 then true
256252 else throw("too late to vote")]
257253 if ((checks == checks))
258254 then {
259255 let gwxAmount = invoke(boostingContract, "getUserGwxAmountAtHeightREADONLY", [toString(i.caller), votingFinishHeight], nil)
260256 let notZero = if ((asInt(gwxAmount) > 0))
261257 then true
262258 else throw("you don't have gwx")
263259 if ((notZero == notZero))
264260 then {
265261 let vote = match getString(keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller))) {
266262 case s: String =>
267263 let vote = split(s, separator)
268264 let voteValue = vote[1]
269265 let voteType = vote[2]
270266 let isVoteTypeSimilar = if (if ((voteType == "yes"))
271267 then (inFavor == true)
272268 else false)
273269 then true
274270 else if ((voteType == "no"))
275271 then (inFavor == false)
276272 else false
277273 let isVoteValueSimilar = if (isVoteTypeSimilar)
278274 then (asInt(gwxAmount) == parseIntValue(voteValue))
279275 else false
280276 let isNewVoteSimilar = if (if (isVoteTypeSimilar)
281277 then isVoteValueSimilar
282278 else false)
283279 then throw("you already voted")
284280 else invoke(this, "cancelVote", [amountAssetId, priceAssetId], nil)
285281 isNewVoteSimilar
286282 case u: Unit =>
287283 u
288284 case _ =>
289285 throw("Match error")
290286 }
291287 if ((vote == vote))
292288 then {
293289 let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator)
294290 let positiveVotes = votingResult[1]
295291 let negativeVotes = votingResult[2]
296292 let newPositiveAndNegativeVotes = if (inFavor)
297293 then {
298294 let newPositiveVotes = (parseIntValue(positiveVotes) + asInt(gwxAmount))
299295 [toString(newPositiveVotes), negativeVotes]
300296 }
301297 else {
302298 let newNegativeVotes = (parseIntValue(negativeVotes) + asInt(gwxAmount))
303299 [positiveVotes, toString(newNegativeVotes)]
304300 }
305301 let voteKey = keyVote(amountAssetId, priceAssetId, suggestIndex, toString(i.caller))
306302 let voteValue = keyVoteValue(toString(asInt(gwxAmount)), inFavor)
307303 $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(newPositiveAndNegativeVotes[0], newPositiveAndNegativeVotes[1])), StringEntry(voteKey, voteValue)], unit)
308304 }
309305 else throw("Strict value is not equal to itself.")
310306 }
311307 else throw("Strict value is not equal to itself.")
312308 }
313309 else throw("Strict value is not equal to itself.")
314310 }
315311
316312
317313
318314 @Callable(i)
319315 func cancelVote (amountAssetId,priceAssetId) = {
320316 let userAddress = if ((i.caller == this))
321317 then toString(i.originCaller)
322318 else toString(i.caller)
323319 let suggestIndex = value(getInteger(keyInListAssetId(amountAssetId, priceAssetId)))
324320 let checks = [if (isDefined(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))))
325321 then true
326322 else throw("no vote for assets pair")]
327323 if ((checks == checks))
328324 then {
329325 let vote = split(value(getString(keyVote(amountAssetId, priceAssetId, suggestIndex, userAddress))), separator)
330326 let voteValue = vote[1]
331327 let voteType = vote[2]
332328 let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator)
333329 let positiveVotes = votingResult[1]
334330 let negativeVotes = votingResult[2]
335331 let actions = if ((voteType == "yes"))
336332 then {
337333 let newPositiveVotes = (parseIntValue(positiveVotes) - parseIntValue(voteValue))
338334 $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(toString(newPositiveVotes), negativeVotes)), DeleteEntry(keyVote(amountAssetId, priceAssetId, suggestIndex, userAddress))], unit)
339335 }
340336 else {
341337 let newNegativeVotes = (parseIntValue(negativeVotes) - parseIntValue(voteValue))
342338 $Tuple2([StringEntry(keyVotingResult(amountAssetId, priceAssetId, suggestIndex), totalVotes(positiveVotes, toString(newNegativeVotes))), DeleteEntry(keyVote(amountAssetId, priceAssetId, suggestIndex, userAddress))], unit)
343339 }
344340 actions
345341 }
346342 else throw("Strict value is not equal to itself.")
347343 }
348344
349345
350346
351347 @Callable(i)
352348 func setFee (newFee) = {
353349 let checks = [mustManager(i)]
354350 if ((checks == checks))
355351 then [IntegerEntry(keyFeeAmount, newFee)]
356352 else throw("Strict value is not equal to itself.")
357353 }
358354
359355
360356
361357 @Callable(i)
362358 func setThreshold (newThreshold) = {
363359 let checks = [mustManager(i), if ((newThreshold > 0))
364360 then true
365361 else throw("invalid threshold")]
366362 if ((checks == checks))
367363 then $Tuple2([IntegerEntry(keyThreshold, newThreshold)], unit)
368364 else throw("Strict value is not equal to itself.")
369365 }
370366
371367
372368
373369 @Callable(i)
374370 func finalize (amountAssetId,priceAssetId) = {
375371 let suggestIndex = value(getInteger(keyInListAssetId(amountAssetId, priceAssetId)))
376372 let votingFinishHeight = (value(getInteger(keyStartHeight(amountAssetId, priceAssetId, suggestIndex))) + value(getInteger(keyEpochLength)))
377373 let checks = [if (isDefined(getInteger(keyInListAssetId(amountAssetId, priceAssetId))))
378374 then true
379375 else throw("no assets pair"), if ((height >= votingFinishHeight))
380376 then true
381377 else throw("insufficient height for completion")]
382378 if ((checks == checks))
383379 then {
384380 let votingResult = split(value(getString(keyVotingResult(amountAssetId, priceAssetId, suggestIndex))), separator)
385381 let positiveVotes = parseIntValue(votingResult[1])
386382 let negativeVotes = parseIntValue(votingResult[2])
387383 let allVotes = (positiveVotes + negativeVotes)
388384 let threshold = getIntOrFail(keyThreshold)
389385 let actions = if (if ((allVotes >= threshold))
390386 then (positiveVotes > negativeVotes)
391387 else false)
392388 then {
393389 let res = invoke(factoryContract, "setWxEmissionPoolLabel", [amountAssetId, priceAssetId], nil)
394390 if ((res == res))
395391 then {
396392 let votingEmissionInv = invoke(votingEmissionContract, "create", [amountAssetId, priceAssetId], nil)
397393 if ((votingEmissionInv == votingEmissionInv))
398394 then $Tuple2([DeleteEntry(keyInListAssetId(amountAssetId, priceAssetId))], unit)
399395 else throw("Strict value is not equal to itself.")
400396 }
401397 else throw("Strict value is not equal to itself.")
402398 }
403399 else $Tuple2([DeleteEntry(keyInListAssetId(amountAssetId, priceAssetId))], unit)
404400 actions
405401 }
406402 else throw("Strict value is not equal to itself.")
407403 }
408404
409405
410406
411407 @Callable(i)
412408 func setManager (pendingManagerPublicKey) = {
413409 let checkCaller = mustManager(i)
414410 if ((checkCaller == checkCaller))
415411 then {
416412 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
417413 if ((checkManagerPublicKey == checkManagerPublicKey))
418414 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
419415 else throw("Strict value is not equal to itself.")
420416 }
421417 else throw("Strict value is not equal to itself.")
422418 }
423419
424420
425421
426422 @Callable(i)
427423 func confirmManager () = {
428424 let pm = pendingManagerPublicKeyOrUnit()
429425 let hasPM = if (isDefined(pm))
430426 then true
431427 else throw("no pending manager")
432428 if ((hasPM == hasPM))
433429 then {
434430 let checkPM = if ((i.callerPublicKey == value(pm)))
435431 then true
436432 else throw("you are not pending manager")
437433 if ((checkPM == checkPM))
438434 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
439435 else throw("Strict value is not equal to itself.")
440436 }
441437 else throw("Strict value is not equal to itself.")
442438 }
443439
444440
445441 @Verifier(tx)
446442 func verify () = {
447443 let targetPublicKey = match managerPublicKeyOrUnit() {
448444 case pk: ByteVector =>
449445 pk
450446 case _: Unit =>
451447 tx.senderPublicKey
452448 case _ =>
453449 throw("Match error")
454450 }
455451 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
456452 }
457453

github/deemru/w8io/026f985 
52.95 ms