tx · EZNFSYbgohqpQ45C95hGygTi21AKPpukwGDFVVBYLwaU

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02200000 Waves

2022.11.01 13:52 [2297955] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "EZNFSYbgohqpQ45C95hGygTi21AKPpukwGDFVVBYLwaU", "fee": 2200000, "feeAssetId": null, "timestamp": 1667299974151, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "41wvSowg57LBvVj3XXwYXnNXQCynuLmD856MgkC4NBcibgnJxgfATGK2g2TUMYDoKttm9By8CrG6wsk75pbxbY9N" ], "script": "base64:BgKpIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgVhc0ludCIGdmFsSW50Ighhc1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QgZXF1YWwgdG8gaXRzZWxmLgECZFcBAmRYAAQCZFkEAXoJAQJidQADCQABAgUBegIKQnl0ZVZlY3RvcgQCYkEFAXoFAmJBAwkAAQIFAXoCBFVuaXQIBQJkVw9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZFcJYm9keUJ5dGVzCQCRAwIIBQJkVwZwcm9vZnMAAAUCZFmzI+dp", "chainId": 84, "height": 2297955, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BDVfxpT1Ek6KKL2ChQFgUsLnkoYP7fEpooxhKK9ZGniV Next: oZphfpjiAh6XS7JGv64HBkSi5Zx1xfzAiYepE8CJrQP 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- 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))
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))
499492 }
500493
501494
525518 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
526519 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
527520 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
528- let $t02234622699 = match res {
521+ let $t02207522428 = match res {
529522 case _ =>
530523 if (if (if ($isInstanceOf($match0._1, "Int"))
531524 then if ($isInstanceOf($match0._3, "Int"))
548541 }
549542 else throw("Couldn't cast types")
550543 }
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
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
556549 $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))
557550 }
558551
583576 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
584577 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
585578 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
586- let $t02527225625 = match res {
579+ let $t02500125354 = match res {
587580 case _ =>
588581 if (if (if ($isInstanceOf($match0._1, "Int"))
589582 then if ($isInstanceOf($match0._3, "Int"))
606599 }
607600 else throw("Couldn't cast types")
608601 }
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
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
614607 $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))
615608 }
616609
620613 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
621614 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
622615 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
623- let $t02632026737 = match res {
616+ let $t02604926466 = match res {
624617 case _ =>
625618 if (if (if ($isInstanceOf($match0._1, "Int"))
626619 then if ($isInstanceOf($match0._2, "Int"))
649642 }
650643 else throw("Couldn't cast types")
651644 }
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
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
659652 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
660653 }
661654
666659 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
667660 let gwxAmount = asInt(gwxUserInfoLIST[0])
668661 $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.")
669672 }
670673
671674
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- 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))
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))
499492 }
500493
501494
502495
503496 @Callable(i)
504497 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
505498 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
506499 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
507500 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
508501 let amAssetIdStr = asString(cfg[idxAmtAssetId])
509502 let amAssetId = fromBase58String(amAssetIdStr)
510503 let prAssetIdStr = asString(cfg[idxPriceAssetId])
511504 let prAssetId = fromBase58String(prAssetIdStr)
512505 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
513506 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
514507 let poolStatus = asString(cfg[idxPoolStatus])
515508 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
516509 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
517510 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
518511 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
519512 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
520513 let curPriceX18 = if ((poolLPBalance == 0))
521514 then zeroBigInt
522515 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
523516 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
524517 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
525518 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
526519 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
527520 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
528- let $t02234622699 = match res {
521+ let $t02207522428 = match res {
529522 case _ =>
530523 if (if (if ($isInstanceOf($match0._1, "Int"))
531524 then if ($isInstanceOf($match0._3, "Int"))
532525 then if ($isInstanceOf($match0._4, "Int"))
533526 then if ($isInstanceOf($match0._5, "Int"))
534527 then $isInstanceOf($match0._6, "Int")
535528 else false
536529 else false
537530 else false
538531 else false)
539532 then (size($match0) == 13)
540533 else false)
541534 then {
542535 let calcLpAmt = $match0._1
543536 let curPriceCalc = $match0._3
544537 let amBalance = $match0._4
545538 let prBalance = $match0._5
546539 let lpEmission = $match0._6
547540 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
548541 }
549542 else throw("Couldn't cast types")
550543 }
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
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
556549 $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))
557550 }
558551
559552
560553
561554 @Callable(i)
562555 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
563556 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
564557 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
565558 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
566559 let amAssetIdStr = asString(cfg[idxAmtAssetId])
567560 let amAssetId = fromBase58String(amAssetIdStr)
568561 let prAssetIdStr = asString(cfg[idxPriceAssetId])
569562 let prAssetId = fromBase58String(prAssetIdStr)
570563 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
571564 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
572565 let poolStatus = asString(cfg[idxPoolStatus])
573566 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
574567 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
575568 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
576569 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
577570 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
578571 let curPriceX18 = if ((poolLPBalance == 0))
579572 then zeroBigInt
580573 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
581574 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
582575 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
583576 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
584577 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
585578 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
586- let $t02527225625 = match res {
579+ let $t02500125354 = match res {
587580 case _ =>
588581 if (if (if ($isInstanceOf($match0._1, "Int"))
589582 then if ($isInstanceOf($match0._3, "Int"))
590583 then if ($isInstanceOf($match0._4, "Int"))
591584 then if ($isInstanceOf($match0._5, "Int"))
592585 then $isInstanceOf($match0._6, "Int")
593586 else false
594587 else false
595588 else false
596589 else false)
597590 then (size($match0) == 13)
598591 else false)
599592 then {
600593 let calcLpAmt = $match0._1
601594 let curPriceCalc = $match0._3
602595 let amBalance = $match0._4
603596 let prBalance = $match0._5
604597 let lpEmission = $match0._6
605598 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
606599 }
607600 else throw("Couldn't cast types")
608601 }
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
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
614607 $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))
615608 }
616609
617610
618611
619612 @Callable(i)
620613 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
621614 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
622615 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
623- let $t02632026737 = match res {
616+ let $t02604926466 = match res {
624617 case _ =>
625618 if (if (if ($isInstanceOf($match0._1, "Int"))
626619 then if ($isInstanceOf($match0._2, "Int"))
627620 then if ($isInstanceOf($match0._5, "Int"))
628621 then if ($isInstanceOf($match0._6, "Int"))
629622 then if ($isInstanceOf($match0._7, "Int"))
630623 then if ($isInstanceOf($match0._8, "String"))
631624 then $isInstanceOf($match0._9, "String")
632625 else false
633626 else false
634627 else false
635628 else false
636629 else false
637630 else false)
638631 then (size($match0) == 10)
639632 else false)
640633 then {
641634 let outAmAmt = $match0._1
642635 let outPrAmt = $match0._2
643636 let amBalance = $match0._5
644637 let prBalance = $match0._6
645638 let lpEmission = $match0._7
646639 let curPrice = $match0._8
647640 let poolStatus = $match0._9
648641 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
649642 }
650643 else throw("Couldn't cast types")
651644 }
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
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
659652 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
660653 }
661654
662655
663656
664657 @Callable(i)
665658 func gwxUserInfoREADONLY (userAddress) = {
666659 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
667660 let gwxAmount = asInt(gwxUserInfoLIST[0])
668661 $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.")
669672 }
670673
671674
672675
673676 @Callable(i)
674677 func setManager (pendingManagerPublicKey) = {
675678 let checkCaller = mustManager(i)
676679 if ((checkCaller == checkCaller))
677680 then {
678681 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
679682 if ((checkManagerPublicKey == checkManagerPublicKey))
680683 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
681684 else throw("Strict value is not equal to itself.")
682685 }
683686 else throw("Strict value is not equal to itself.")
684687 }
685688
686689
687690
688691 @Callable(i)
689692 func confirmManager () = {
690693 let pm = pendingManagerPublicKeyOrUnit()
691694 let hasPM = if (isDefined(pm))
692695 then true
693696 else throw("No pending manager")
694697 if ((hasPM == hasPM))
695698 then {
696699 let checkPM = if ((i.callerPublicKey == value(pm)))
697700 then true
698701 else throw("You are not pending manager")
699702 if ((checkPM == checkPM))
700703 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
701704 else throw("Strict value is not equal to itself.")
702705 }
703706 else throw("Strict value is not equal to itself.")
704707 }
705708
706709
707710 @Verifier(tx)
708711 func verify () = {
709712 let targetPublicKey = match managerPublicKeyOrUnit() {
710713 case pk: ByteVector =>
711714 pk
712715 case _: Unit =>
713716 tx.senderPublicKey
714717 case _ =>
715718 throw("Match error")
716719 }
717720 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
718721 }
719722

github/deemru/w8io/026f985 
76.06 ms