tx · oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02200000 Waves

2022.11.01 14:15 [2297978] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP", "fee": 2200000, "feeAssetId": null, "timestamp": 1667301276590, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "3XvJLca41LH91e76Ar9eypvXw1B29unHpM4G95Y4AFSvqPbRtV3a58WHxWnwFFbdCWoA9nyVNaNFJ45b96bmP1Qe" ], "script": "base64:BgK3IQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgMKAQgSACIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50Ig5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY20iD2dldFN0cmluZ09yRmFpbCIDa2V5IhhnZXRTdHJpbmdCeUFkZHJlc3NPckZhaWwiB2FkZHJlc3MiDGdldEludE9yWmVybyIMZ2V0SW50T3JGYWlsIglhc0FueUxpc3QiA3ZhbCIHJG1hdGNoMCIKdmFsQW55THlzdCIFYXNJbnQiBnZhbEludCIIYXNTdHJpbmciBnZhbF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QECYnUAAwkAAQIFAXoCCkJ5dGVWZWN0b3IEAmJBBQF6BQJiQQMJAAECBQF6AgRVbml0CAUCZFYPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmRWCWJvZHlCeXRlcwkAkQMCCAUCZFYGcHJvb2ZzAAAFAmRYBNNwrw==", "chainId": 84, "height": 2297978, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZNFSYbgohqpQ45C95hGygTi21AKPpukwGDFVVBYLwaU Next: Brua41sNS1zpvgVF94FQr2H65z87wYXjzq9tZzQDv4Xg Diff:
OldNewDifferences
488488 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
489489 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
490490 let fee = getPoolFee(poolAddress)
491- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(fee)], SEP))
491+ let poolOneTokenOperationsDisabled = {
492+ let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
493+ if ($isInstanceOf(@, "Boolean"))
494+ then @
495+ else throw(($getType(@) + " couldn't be cast to Boolean"))
496+ }
497+ let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
498+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(fee), toString(poolOneTokenOperationsEnabled)], SEP))
492499 }
493500
494501
518525 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
519526 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
520527 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
521- let $t02207522428 = match res {
528+ let $t02234622699 = match res {
522529 case _ =>
523530 if (if (if ($isInstanceOf($match0._1, "Int"))
524531 then if ($isInstanceOf($match0._3, "Int"))
541548 }
542549 else throw("Couldn't cast types")
543550 }
544- let calcLpAmt = $t02207522428._1
545- let curPriceCalc = $t02207522428._2
546- let amBalance = $t02207522428._3
547- let prBalance = $t02207522428._4
548- let lpEmission = $t02207522428._5
551+ let calcLpAmt = $t02234622699._1
552+ let curPriceCalc = $t02234622699._2
553+ let amBalance = $t02234622699._3
554+ let prBalance = $t02234622699._4
555+ let lpEmission = $t02234622699._5
549556 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
550557 }
551558
576583 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
577584 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
578585 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
579- let $t02500125354 = match res {
586+ let $t02527225625 = match res {
580587 case _ =>
581588 if (if (if ($isInstanceOf($match0._1, "Int"))
582589 then if ($isInstanceOf($match0._3, "Int"))
599606 }
600607 else throw("Couldn't cast types")
601608 }
602- let calcLpAmt = $t02500125354._1
603- let curPriceCalc = $t02500125354._2
604- let amBalance = $t02500125354._3
605- let prBalance = $t02500125354._4
606- let lpEmission = $t02500125354._5
609+ let calcLpAmt = $t02527225625._1
610+ let curPriceCalc = $t02527225625._2
611+ let amBalance = $t02527225625._3
612+ let prBalance = $t02527225625._4
613+ let lpEmission = $t02527225625._5
607614 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
608615 }
609616
613620 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
614621 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
615622 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
616- let $t02604926466 = match res {
623+ let $t02632026737 = match res {
617624 case _ =>
618625 if (if (if ($isInstanceOf($match0._1, "Int"))
619626 then if ($isInstanceOf($match0._2, "Int"))
642649 }
643650 else throw("Couldn't cast types")
644651 }
645- let outAmAmt = $t02604926466._1
646- let outPrAmt = $t02604926466._2
647- let amBalance = $t02604926466._3
648- let prBalance = $t02604926466._4
649- let lpEmission = $t02604926466._5
650- let curPrice = $t02604926466._6
651- let poolStatus = $t02604926466._7
652+ let outAmAmt = $t02632026737._1
653+ let outPrAmt = $t02632026737._2
654+ let amBalance = $t02632026737._3
655+ let prBalance = $t02632026737._4
656+ let lpEmission = $t02632026737._5
657+ let curPrice = $t02632026737._6
658+ let poolStatus = $t02632026737._7
652659 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
653660 }
654661
659666 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
660667 let gwxAmount = asInt(gwxUserInfoLIST[0])
661668 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
662- }
663-
664-
665-
666-@Callable(i)
667-func unstakeAndGetOneTknV2 (poolAddress,unstakeAmount,outAssetId,minOutAmount) = {
668- let inv = invoke(addressFromStringValue(poolAddress), "unstakeAndGetOneTknV2", [unstakeAmount, outAssetId, minOutAmount], nil)
669- if ((inv == inv))
670- then $Tuple2(nil, unit)
671- else throw("Strict value is not equal to itself.")
672669 }
673670
674671
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let SEP = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let zeroBigInt = toBigInt(0)
1717
1818 let idxPoolAddress = 1
1919
2020 let idxPoolStatus = 2
2121
2222 let idxPoolLPAssetId = 3
2323
2424 let idxAmtAssetId = 4
2525
2626 let idxPriceAssetId = 5
2727
2828 let idxAmtAssetDcm = 6
2929
3030 let idxPriceAssetDcm = 7
3131
3232 let idxIAmtAssetId = 8
3333
3434 let idxIPriceAssetId = 9
3535
3636 let idxLPAssetDcm = 10
3737
3838 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
3939
4040
4141 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4242
4343
4444 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
4545
4646
4747 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
4848
4949
5050 func asAnyList (val) = match val {
5151 case valAnyLyst: List[Any] =>
5252 valAnyLyst
5353 case _ =>
5454 throw("fail to cast into List[Any]")
5555 }
5656
5757
5858 func asInt (val) = match val {
5959 case valInt: Int =>
6060 valInt
6161 case _ =>
6262 throw("fail to cast into Int")
6363 }
6464
6565
6666 func asString (val) = match val {
6767 case valStr: String =>
6868 valStr
6969 case _ =>
7070 throw("fail to cast into String")
7171 }
7272
7373
7474 func keyFactoryAddress () = "%s%s__config__factoryAddress"
7575
7676
7777 func keyManagerPublicKey () = "%s__managerPublicKey"
7878
7979
8080 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
8181
8282
8383 let IdxFactoryCfgStakingDapp = 1
8484
8585 let IdxFactoryCfgBoostingDapp = 2
8686
8787 let IdxFactoryCfgIdoDapp = 3
8888
8989 let IdxFactoryCfgTeamDapp = 4
9090
9191 let IdxFactoryCfgEmissionDapp = 5
9292
9393 let IdxFactoryCfgRestDapp = 6
9494
9595 let IdxFactoryCfgSlippageDapp = 7
9696
9797 let IdxFactoryCfgGwxRewardDapp = 8
9898
9999 func keyFactoryCfg () = "%s__factoryConfig"
100100
101101
102102 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
103103
104104
105105 func keyFactoryLpList () = "%s__lpTokensList"
106106
107107
108108 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
109109
110110
111111 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
112112
113113
114114 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
115115
116116
117117 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
118118
119119
120120 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
121121
122122
123123 func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp])
124124
125125
126126 func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp])
127127
128128
129129 func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp])
130130
131131
132132 func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp])
133133
134134
135135 func keyBoostCfg () = "%s__config"
136136
137137
138138 func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
139139
140140
141141 func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
142142
143143
144144 func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount"
145145
146146
147147 func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount"
148148
149149
150150 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
151151
152152
153153 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
154154
155155
156156 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
157157
158158
159159 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
160160
161161
162162 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
163163
164164
165165 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
166166
167167
168168 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
169169
170170
171171 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
172172
173173
174174 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
175175
176176
177177 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
178178
179179
180180 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
181181
182182
183183 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
184184
185185
186186 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
187187
188188
189189 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
190190
191191
192192 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
193193
194194
195195 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
196196
197197
198198 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
199199
200200
201201 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
202202
203203
204204 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
205205
206206
207207 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
208208
209209
210210 func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0)
211211
212212
213213 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
214214
215215
216216 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
217217
218218
219219 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
220220
221221
222222 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
223223
224224
225225 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
226226
227227
228228 func keyAddonAddr () = "%s__addonAddr"
229229
230230
231231 func getPoolFee (poolAddress) = {
232232 let feeDefault = fraction(5, MULT8, 10000)
233233 let keyFee = "%s__fee"
234234 valueOrElse(getInteger(poolAddress, keyFee), feeDefault)
235235 }
236236
237237
238238 let factoryDapp = readFactoryAddressOrFail()
239239
240240 let factoryCfg = readFactoryCfgOrFail(factoryDapp)
241241
242242 let emissionDapp = getEmissionAddressOrFail(factoryCfg)
243243
244244 let stakingDapp = getStakingAddressOrFail(factoryCfg)
245245
246246 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
247247
248248 let boostingDapp = getBoostingAddressOrFail(factoryCfg)
249249
250250 func internalCurrentRewardRate (lpAssetId) = {
251251 let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
252252 let poolWeightMult = MULT8
253253 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
254254 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
255255 let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent())
256256 let boostMaxCoeff = 3
257257 let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
258258 let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
259259 let maxFactor = (boostMaxCoeff * MULT8)
260260 let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId))
261261 [poolWxEmissionPerBlock, maxFactor, totalLpStaked]
262262 }
263263
264264
265265 func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
266266 let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
267267 let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
268268 [gWxAmountStart]
269269 }
270270
271271
272272 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
273273 case s: String =>
274274 fromBase58String(s)
275275 case _: Unit =>
276276 unit
277277 case _ =>
278278 throw("Match error")
279279 }
280280
281281
282282 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
283283 case s: String =>
284284 fromBase58String(s)
285285 case _: Unit =>
286286 unit
287287 case _ =>
288288 throw("Match error")
289289 }
290290
291291
292292 func mustManager (i) = {
293293 let pd = throw("Permission denied")
294294 match managerPublicKeyOrUnit() {
295295 case pk: ByteVector =>
296296 if ((i.callerPublicKey == pk))
297297 then true
298298 else pd
299299 case _: Unit =>
300300 if ((i.caller == this))
301301 then true
302302 else pd
303303 case _ =>
304304 throw("Match error")
305305 }
306306 }
307307
308308
309309 @Callable(i)
310310 func constructor (factoryAddress) = {
311311 let checkCaller = mustManager(i)
312312 if ((checkCaller == checkCaller))
313313 then [StringEntry(keyFactoryAddress(), factoryAddress)]
314314 else throw("Strict value is not equal to itself.")
315315 }
316316
317317
318318
319319 @Callable(i)
320320 func currentRewardRateREADONLY (lpAssetId) = {
321321 let rewardData = internalCurrentRewardRate(lpAssetId)
322322 let wxEmissionPerBlock = rewardData[0]
323323 let maxFactor = rewardData[1]
324324 let totalLpStaked = rewardData[2]
325325 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
326326 }
327327
328328
329329
330330 @Callable(i)
331331 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
332332 let rewardData = internalCurrentRewardRate(lpAssetId)
333333 let wxEmissionPerBlock = rewardData[0]
334334 let maxFactor = rewardData[1]
335335 let totalLpStaked = rewardData[2]
336336 let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
337337 let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
338338 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
339339 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
340340 let debug = userClaimInfo[7]
341341 let boostingPower = if ((boostRewardPart == 0))
342342 then (1 * MULT8)
343343 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
344344 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
345345 }
346346
347347
348348
349349 @Callable(i)
350350 func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk)))
351351 then $Tuple2(nil, resAcc)
352352 else {
353353 let deltaWxAmount = deltaWxAmountBulk[currentIter]
354354 let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter]
355355 let deltaLpAmount = deltaLpAmountBulk[currentIter]
356356 let lpAssetIdOpt = lpAssetIdOptBulk[currentIter]
357357 let info = {
358358 let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)
359359 if ($isInstanceOf(@, "String"))
360360 then @
361361 else throw(($getType(@) + " couldn't be cast to String"))
362362 }
363363 let res = (resAcc :+ info)
364364 let inv = {
365365 let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)
366366 if ($isInstanceOf(@, "List[Any]"))
367367 then @
368368 else throw(($getType(@) + " couldn't be cast to List[Any]"))
369369 }
370370 if ((inv == inv))
371371 then $Tuple2(nil, inv)
372372 else throw("Strict value is not equal to itself.")
373373 }
374374
375375
376376
377377 @Callable(i)
378378 func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
379379 let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil)
380380 $Tuple2(nil, res)
381381 }
382382
383383
384384
385385 @Callable(i)
386386 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
387387 let mathDapp = gwxRewardDapp
388388 let EMPTYSTR = "empty"
389389 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
390390 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
391391 then EMPTYSTR
392392 else lpAssetIdOpt
393393 let userAddressStr = if ((userAddressOpt == ""))
394394 then EMPTYSTR
395395 else userAddressOpt
396396 let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
397397 let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
398398 let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
399399 let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
400400 let lockEnd = (lockStart + lockDuration)
401401 let remainingDuration = max([(lockEnd - height), 0])
402402 let userAmountNew = (userAmount + deltaWxAmount)
403403 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
404404 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
405405 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
406406 let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
407407 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
408408 let k = asInt(gWxParamsResultList[0])
409409 let b = asInt(gWxParamsResultList[1])
410410 let period = toString(asInt(gWxParamsResultList[2]))
411411 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
412412 let totalCachedGwxKEY = keyTotalCachedGwx()
413413 let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
414414 let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
415415 let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0)
416416 let MULT3 = 1000
417417 let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
418418 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
419419 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
420420 let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
421421 let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
422422 let stakedByUserNew = (stakedByUser + deltaLpAmount)
423423 let stakedTotalNew = (stakedTotal + deltaLpAmount)
424424 let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
425425 then {
426426 let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
427427 getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
428428 }
429429 else 0
430430 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
431431 let wxPerLpX3 = if ((stakedTotalNew != 0))
432432 then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
433433 else 0
434434 let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
435435 let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
436436 let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
437437 let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
438438 let boostCoeff = if ((userWxPerBlockX3 == 0))
439439 then (1 * MULT8)
440440 else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
441441 $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP))
442442 }
443443
444444
445445
446446 @Callable(i)
447447 func wxEmissionStatsREADONLY () = {
448448 let ONEMULT = toString(MULT8)
449449 let ONE = "1"
450450 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
451451 let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
452452 let passedBlocks = if ((emissionStartBlock > height))
453453 then 0
454454 else (height - emissionStartBlock)
455455 let teamEmDuration = (1440 * 365)
456456 let teamEmMax = (201000000 * MULT8)
457457 let teamEm = if ((passedBlocks > teamEmDuration))
458458 then teamEmMax
459459 else fraction(teamEmMax, passedBlocks, teamEmDuration)
460460 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
461461 let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
462462 let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
463463 let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
464464 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
465465 }
466466
467467
468468
469469 @Callable(i)
470470 func poolStatsREADONLY (lpAsset) = {
471471 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
472472 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
473473 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
474474 let amtAssetId = asString(cfg[idxAmtAssetId])
475475 let priceAssetId = asString(cfg[idxPriceAssetId])
476476 let iAmtAssetId = asString(cfg[idxIAmtAssetId])
477477 let iPriceAssetId = asString(cfg[idxIPriceAssetId])
478478 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
479479 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
480480 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
481481 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil))
482482 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil))
483483 let pricesList = if ((poolLPBalance == 0))
484484 then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)]
485485 else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil))
486486 let curPrice = 0
487487 let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil))
488488 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
489489 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
490490 let fee = getPoolFee(poolAddress)
491- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(fee)], SEP))
491+ let poolOneTokenOperationsDisabled = {
492+ let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
493+ if ($isInstanceOf(@, "Boolean"))
494+ then @
495+ else throw(($getType(@) + " couldn't be cast to Boolean"))
496+ }
497+ let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
498+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(fee), toString(poolOneTokenOperationsEnabled)], SEP))
492499 }
493500
494501
495502
496503 @Callable(i)
497504 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
498505 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
499506 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
500507 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
501508 let amAssetIdStr = asString(cfg[idxAmtAssetId])
502509 let amAssetId = fromBase58String(amAssetIdStr)
503510 let prAssetIdStr = asString(cfg[idxPriceAssetId])
504511 let prAssetId = fromBase58String(prAssetIdStr)
505512 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
506513 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
507514 let poolStatus = asString(cfg[idxPoolStatus])
508515 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
509516 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
510517 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
511518 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
512519 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
513520 let curPriceX18 = if ((poolLPBalance == 0))
514521 then zeroBigInt
515522 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
516523 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
517524 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
518525 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
519526 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
520527 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
521- let $t02207522428 = match res {
528+ let $t02234622699 = match res {
522529 case _ =>
523530 if (if (if ($isInstanceOf($match0._1, "Int"))
524531 then if ($isInstanceOf($match0._3, "Int"))
525532 then if ($isInstanceOf($match0._4, "Int"))
526533 then if ($isInstanceOf($match0._5, "Int"))
527534 then $isInstanceOf($match0._6, "Int")
528535 else false
529536 else false
530537 else false
531538 else false)
532539 then (size($match0) == 13)
533540 else false)
534541 then {
535542 let calcLpAmt = $match0._1
536543 let curPriceCalc = $match0._3
537544 let amBalance = $match0._4
538545 let prBalance = $match0._5
539546 let lpEmission = $match0._6
540547 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
541548 }
542549 else throw("Couldn't cast types")
543550 }
544- let calcLpAmt = $t02207522428._1
545- let curPriceCalc = $t02207522428._2
546- let amBalance = $t02207522428._3
547- let prBalance = $t02207522428._4
548- let lpEmission = $t02207522428._5
551+ let calcLpAmt = $t02234622699._1
552+ let curPriceCalc = $t02234622699._2
553+ let amBalance = $t02234622699._3
554+ let prBalance = $t02234622699._4
555+ let lpEmission = $t02234622699._5
549556 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
550557 }
551558
552559
553560
554561 @Callable(i)
555562 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
556563 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
557564 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
558565 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
559566 let amAssetIdStr = asString(cfg[idxAmtAssetId])
560567 let amAssetId = fromBase58String(amAssetIdStr)
561568 let prAssetIdStr = asString(cfg[idxPriceAssetId])
562569 let prAssetId = fromBase58String(prAssetIdStr)
563570 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
564571 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
565572 let poolStatus = asString(cfg[idxPoolStatus])
566573 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
567574 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
568575 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
569576 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
570577 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
571578 let curPriceX18 = if ((poolLPBalance == 0))
572579 then zeroBigInt
573580 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
574581 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
575582 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
576583 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
577584 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
578585 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
579- let $t02500125354 = match res {
586+ let $t02527225625 = match res {
580587 case _ =>
581588 if (if (if ($isInstanceOf($match0._1, "Int"))
582589 then if ($isInstanceOf($match0._3, "Int"))
583590 then if ($isInstanceOf($match0._4, "Int"))
584591 then if ($isInstanceOf($match0._5, "Int"))
585592 then $isInstanceOf($match0._6, "Int")
586593 else false
587594 else false
588595 else false
589596 else false)
590597 then (size($match0) == 13)
591598 else false)
592599 then {
593600 let calcLpAmt = $match0._1
594601 let curPriceCalc = $match0._3
595602 let amBalance = $match0._4
596603 let prBalance = $match0._5
597604 let lpEmission = $match0._6
598605 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
599606 }
600607 else throw("Couldn't cast types")
601608 }
602- let calcLpAmt = $t02500125354._1
603- let curPriceCalc = $t02500125354._2
604- let amBalance = $t02500125354._3
605- let prBalance = $t02500125354._4
606- let lpEmission = $t02500125354._5
609+ let calcLpAmt = $t02527225625._1
610+ let curPriceCalc = $t02527225625._2
611+ let amBalance = $t02527225625._3
612+ let prBalance = $t02527225625._4
613+ let lpEmission = $t02527225625._5
607614 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
608615 }
609616
610617
611618
612619 @Callable(i)
613620 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
614621 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
615622 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
616- let $t02604926466 = match res {
623+ let $t02632026737 = match res {
617624 case _ =>
618625 if (if (if ($isInstanceOf($match0._1, "Int"))
619626 then if ($isInstanceOf($match0._2, "Int"))
620627 then if ($isInstanceOf($match0._5, "Int"))
621628 then if ($isInstanceOf($match0._6, "Int"))
622629 then if ($isInstanceOf($match0._7, "Int"))
623630 then if ($isInstanceOf($match0._8, "String"))
624631 then $isInstanceOf($match0._9, "String")
625632 else false
626633 else false
627634 else false
628635 else false
629636 else false
630637 else false)
631638 then (size($match0) == 10)
632639 else false)
633640 then {
634641 let outAmAmt = $match0._1
635642 let outPrAmt = $match0._2
636643 let amBalance = $match0._5
637644 let prBalance = $match0._6
638645 let lpEmission = $match0._7
639646 let curPrice = $match0._8
640647 let poolStatus = $match0._9
641648 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
642649 }
643650 else throw("Couldn't cast types")
644651 }
645- let outAmAmt = $t02604926466._1
646- let outPrAmt = $t02604926466._2
647- let amBalance = $t02604926466._3
648- let prBalance = $t02604926466._4
649- let lpEmission = $t02604926466._5
650- let curPrice = $t02604926466._6
651- let poolStatus = $t02604926466._7
652+ let outAmAmt = $t02632026737._1
653+ let outPrAmt = $t02632026737._2
654+ let amBalance = $t02632026737._3
655+ let prBalance = $t02632026737._4
656+ let lpEmission = $t02632026737._5
657+ let curPrice = $t02632026737._6
658+ let poolStatus = $t02632026737._7
652659 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
653660 }
654661
655662
656663
657664 @Callable(i)
658665 func gwxUserInfoREADONLY (userAddress) = {
659666 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
660667 let gwxAmount = asInt(gwxUserInfoLIST[0])
661668 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
662- }
663-
664-
665-
666-@Callable(i)
667-func unstakeAndGetOneTknV2 (poolAddress,unstakeAmount,outAssetId,minOutAmount) = {
668- let inv = invoke(addressFromStringValue(poolAddress), "unstakeAndGetOneTknV2", [unstakeAmount, outAssetId, minOutAmount], nil)
669- if ((inv == inv))
670- then $Tuple2(nil, unit)
671- else throw("Strict value is not equal to itself.")
672669 }
673670
674671
675672
676673 @Callable(i)
677674 func setManager (pendingManagerPublicKey) = {
678675 let checkCaller = mustManager(i)
679676 if ((checkCaller == checkCaller))
680677 then {
681678 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
682679 if ((checkManagerPublicKey == checkManagerPublicKey))
683680 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
684681 else throw("Strict value is not equal to itself.")
685682 }
686683 else throw("Strict value is not equal to itself.")
687684 }
688685
689686
690687
691688 @Callable(i)
692689 func confirmManager () = {
693690 let pm = pendingManagerPublicKeyOrUnit()
694691 let hasPM = if (isDefined(pm))
695692 then true
696693 else throw("No pending manager")
697694 if ((hasPM == hasPM))
698695 then {
699696 let checkPM = if ((i.callerPublicKey == value(pm)))
700697 then true
701698 else throw("You are not pending manager")
702699 if ((checkPM == checkPM))
703700 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
704701 else throw("Strict value is not equal to itself.")
705702 }
706703 else throw("Strict value is not equal to itself.")
707704 }
708705
709706
710707 @Verifier(tx)
711708 func verify () = {
712709 let targetPublicKey = match managerPublicKeyOrUnit() {
713710 case pk: ByteVector =>
714711 pk
715712 case _: Unit =>
716713 tx.senderPublicKey
717714 case _ =>
718715 throw("Match error")
719716 }
720717 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
721718 }
722719

github/deemru/w8io/026f985 
365.96 ms