tx · BPuXPPbwKY25ygtVHUECy3c3MpvVYZsAy2BcUvzL5eyy

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02300000 Waves

2022.11.04 14:20 [2302302] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "BPuXPPbwKY25ygtVHUECy3c3MpvVYZsAy2BcUvzL5eyy", "fee": 2300000, "feeAssetId": null, "timestamp": 1667560823693, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "5jzXfhodQGK71cpRKjor8G8BA8bxoTSjNV7suGsdscFLwKF3N4c8KVrYhWFqX4wgQkVEixkT9gkuAUvr6XNAFDsd" ], "script": "base64:BgKOIggCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgSAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0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AUcACQDYBAEJAQV2YWx1ZQEFAmRaCQDMCAIJAQtEZWxldGVFbnRyeQEJAQFIAAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJlYwECZWQABAJlZQQBegkBAmJ4AAMJAAECBQF6AgpCeXRlVmVjdG9yBAJiRAUBegUCYkQDCQABAgUBegIEVW5pdAgFAmVjD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJlYwlib2R5Qnl0ZXMJAJEDAggFAmVjBnByb29mcwAABQJlZX74iNY=", "chainId": 84, "height": 2302302, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: byMgEgVgA9fYon6j6k1Ng6jpKzxHiZaWwApyQj4pgFv Next: DQqwwZr61yWN1U9y8noZSczCh5jN5hfH84asf14E5JEv Diff:
OldNewDifferences
229229
230230
231231 func getPoolFee (poolAddress) = {
232- let feeDefault = fraction(5, MULT8, 10000)
232+ let feeDefault = fraction(50, MULT8, 10000)
233233 let keyFee = "%s__fee"
234234 valueOrElse(getInteger(poolAddress, keyFee), feeDefault)
235235 }
534534 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
535535 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
536536 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
537- let $t02269923052 = match res {
537+ let $t02270023053 = match res {
538538 case _ =>
539539 if (if (if ($isInstanceOf($match0._1, "Int"))
540540 then if ($isInstanceOf($match0._3, "Int"))
557557 }
558558 else throw("Couldn't cast types")
559559 }
560- let calcLpAmt = $t02269923052._1
561- let curPriceCalc = $t02269923052._2
562- let amBalance = $t02269923052._3
563- let prBalance = $t02269923052._4
564- let lpEmission = $t02269923052._5
560+ let calcLpAmt = $t02270023053._1
561+ let curPriceCalc = $t02270023053._2
562+ let amBalance = $t02270023053._3
563+ let prBalance = $t02270023053._4
564+ let lpEmission = $t02270023053._5
565565 $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))
566566 }
567567
592592 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
593593 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
594594 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
595- let $t02562525978 = match res {
595+ let $t02562625979 = match res {
596596 case _ =>
597597 if (if (if ($isInstanceOf($match0._1, "Int"))
598598 then if ($isInstanceOf($match0._3, "Int"))
615615 }
616616 else throw("Couldn't cast types")
617617 }
618- let calcLpAmt = $t02562525978._1
619- let curPriceCalc = $t02562525978._2
620- let amBalance = $t02562525978._3
621- let prBalance = $t02562525978._4
622- let lpEmission = $t02562525978._5
618+ let calcLpAmt = $t02562625979._1
619+ let curPriceCalc = $t02562625979._2
620+ let amBalance = $t02562625979._3
621+ let prBalance = $t02562625979._4
622+ let lpEmission = $t02562625979._5
623623 $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))
624624 }
625625
629629 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
630630 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
631631 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
632- let $t02667327090 = match res {
632+ let $t02667427091 = match res {
633633 case _ =>
634634 if (if (if ($isInstanceOf($match0._1, "Int"))
635635 then if ($isInstanceOf($match0._2, "Int"))
658658 }
659659 else throw("Couldn't cast types")
660660 }
661- let outAmAmt = $t02667327090._1
662- let outPrAmt = $t02667327090._2
663- let amBalance = $t02667327090._3
664- let prBalance = $t02667327090._4
665- let lpEmission = $t02667327090._5
666- let curPrice = $t02667327090._6
667- let poolStatus = $t02667327090._7
661+ let outAmAmt = $t02667427091._1
662+ let outPrAmt = $t02667427091._2
663+ let amBalance = $t02667427091._3
664+ let prBalance = $t02667427091._4
665+ let lpEmission = $t02667427091._5
666+ let curPrice = $t02667427091._6
667+ let poolStatus = $t02667427091._7
668668 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
669669 }
670670
675675 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
676676 let gwxAmount = asInt(gwxUserInfoLIST[0])
677677 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
678+ }
679+
680+
681+
682+@Callable(i)
683+func unstakeAndGetOneTknV2 (poolAddress,unstakeAmount,outAssetId,minOutAmount) = {
684+ let inv = invoke(addressFromStringValue(poolAddress), "unstakeAndGetOneTknV2", [unstakeAmount, outAssetId, minOutAmount], nil)
685+ if ((inv == inv))
686+ then $Tuple2(nil, unit)
687+ else throw("Strict value is not equal to itself.")
678688 }
679689
680690
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) = {
232- let feeDefault = fraction(5, MULT8, 10000)
232+ let feeDefault = fraction(50, 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 getKey (addr,key,type) = if ((type == "string"))
273273 then getStringValue(addr, key)
274274 else if ((type == "integer"))
275275 then toString(getIntegerValue(addr, key))
276276 else if ((type == "boolean"))
277277 then toString(getBooleanValue(addr, key))
278278 else throw("unknown type. expected string/integer/boolean")
279279
280280
281281 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
282282 case s: String =>
283283 fromBase58String(s)
284284 case _: Unit =>
285285 unit
286286 case _ =>
287287 throw("Match error")
288288 }
289289
290290
291291 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
292292 case s: String =>
293293 fromBase58String(s)
294294 case _: Unit =>
295295 unit
296296 case _ =>
297297 throw("Match error")
298298 }
299299
300300
301301 func mustManager (i) = {
302302 let pd = throw("Permission denied")
303303 match managerPublicKeyOrUnit() {
304304 case pk: ByteVector =>
305305 if ((i.callerPublicKey == pk))
306306 then true
307307 else pd
308308 case _: Unit =>
309309 if ((i.caller == this))
310310 then true
311311 else pd
312312 case _ =>
313313 throw("Match error")
314314 }
315315 }
316316
317317
318318 @Callable(i)
319319 func constructor (factoryAddress) = {
320320 let checkCaller = mustManager(i)
321321 if ((checkCaller == checkCaller))
322322 then [StringEntry(keyFactoryAddress(), factoryAddress)]
323323 else throw("Strict value is not equal to itself.")
324324 }
325325
326326
327327
328328 @Callable(i)
329329 func currentRewardRateREADONLY (lpAssetId) = {
330330 let rewardData = internalCurrentRewardRate(lpAssetId)
331331 let wxEmissionPerBlock = rewardData[0]
332332 let maxFactor = rewardData[1]
333333 let totalLpStaked = rewardData[2]
334334 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
335335 }
336336
337337
338338
339339 @Callable(i)
340340 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
341341 let rewardData = internalCurrentRewardRate(lpAssetId)
342342 let wxEmissionPerBlock = rewardData[0]
343343 let maxFactor = rewardData[1]
344344 let totalLpStaked = rewardData[2]
345345 let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
346346 let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
347347 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
348348 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
349349 let debug = userClaimInfo[7]
350350 let boostingPower = if ((boostRewardPart == 0))
351351 then (1 * MULT8)
352352 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
353353 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
354354 }
355355
356356
357357
358358 @Callable(i)
359359 func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk)))
360360 then $Tuple2(nil, resAcc)
361361 else {
362362 let deltaWxAmount = deltaWxAmountBulk[currentIter]
363363 let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter]
364364 let deltaLpAmount = deltaLpAmountBulk[currentIter]
365365 let lpAssetIdOpt = lpAssetIdOptBulk[currentIter]
366366 let info = {
367367 let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)
368368 if ($isInstanceOf(@, "String"))
369369 then @
370370 else throw(($getType(@) + " couldn't be cast to String"))
371371 }
372372 let res = (resAcc :+ info)
373373 let inv = {
374374 let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)
375375 if ($isInstanceOf(@, "List[Any]"))
376376 then @
377377 else throw(($getType(@) + " couldn't be cast to List[Any]"))
378378 }
379379 if ((inv == inv))
380380 then $Tuple2(nil, inv)
381381 else throw("Strict value is not equal to itself.")
382382 }
383383
384384
385385
386386 @Callable(i)
387387 func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
388388 let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil)
389389 $Tuple2(nil, res)
390390 }
391391
392392
393393
394394 @Callable(i)
395395 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
396396 let mathDapp = gwxRewardDapp
397397 let EMPTYSTR = "empty"
398398 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
399399 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
400400 then EMPTYSTR
401401 else lpAssetIdOpt
402402 let userAddressStr = if ((userAddressOpt == ""))
403403 then EMPTYSTR
404404 else userAddressOpt
405405 let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
406406 let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
407407 let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
408408 let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
409409 let lockEnd = (lockStart + lockDuration)
410410 let remainingDuration = max([(lockEnd - height), 0])
411411 let userAmountNew = (userAmount + deltaWxAmount)
412412 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
413413 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
414414 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
415415 let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
416416 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
417417 let k = asInt(gWxParamsResultList[0])
418418 let b = asInt(gWxParamsResultList[1])
419419 let period = toString(asInt(gWxParamsResultList[2]))
420420 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
421421 let totalCachedGwxKEY = keyTotalCachedGwx()
422422 let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
423423 let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
424424 let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0)
425425 let MULT3 = 1000
426426 let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
427427 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
428428 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
429429 let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
430430 let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
431431 let stakedByUserNew = (stakedByUser + deltaLpAmount)
432432 let stakedTotalNew = (stakedTotal + deltaLpAmount)
433433 let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
434434 then {
435435 let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
436436 getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
437437 }
438438 else 0
439439 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
440440 let wxPerLpX3 = if ((stakedTotalNew != 0))
441441 then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
442442 else 0
443443 let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
444444 let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
445445 let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
446446 let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
447447 let boostCoeff = if ((userWxPerBlockX3 == 0))
448448 then (1 * MULT8)
449449 else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
450450 $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP))
451451 }
452452
453453
454454
455455 @Callable(i)
456456 func wxEmissionStatsREADONLY () = {
457457 let ONEMULT = toString(MULT8)
458458 let ONE = "1"
459459 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
460460 let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
461461 let passedBlocks = if ((emissionStartBlock > height))
462462 then 0
463463 else (height - emissionStartBlock)
464464 let teamEmDuration = (1440 * 365)
465465 let teamEmMax = (201000000 * MULT8)
466466 let teamEm = if ((passedBlocks > teamEmDuration))
467467 then teamEmMax
468468 else fraction(teamEmMax, passedBlocks, teamEmDuration)
469469 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
470470 let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
471471 let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
472472 let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
473473 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
474474 }
475475
476476
477477
478478 @Callable(i)
479479 func poolStatsREADONLY (lpAsset) = {
480480 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
481481 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
482482 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
483483 let amtAssetId = asString(cfg[idxAmtAssetId])
484484 let priceAssetId = asString(cfg[idxPriceAssetId])
485485 let iAmtAssetId = asString(cfg[idxIAmtAssetId])
486486 let iPriceAssetId = asString(cfg[idxIPriceAssetId])
487487 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
488488 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
489489 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
490490 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil))
491491 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil))
492492 let pricesList = if ((poolLPBalance == 0))
493493 then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)]
494494 else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil))
495495 let curPrice = 0
496496 let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil))
497497 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
498498 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
499499 let fee = getPoolFee(poolAddress)
500500 let poolOneTokenOperationsDisabled = {
501501 let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
502502 if ($isInstanceOf(@, "Boolean"))
503503 then @
504504 else throw(($getType(@) + " couldn't be cast to Boolean"))
505505 }
506506 let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
507507 $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))
508508 }
509509
510510
511511
512512 @Callable(i)
513513 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
514514 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
515515 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
516516 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
517517 let amAssetIdStr = asString(cfg[idxAmtAssetId])
518518 let amAssetId = fromBase58String(amAssetIdStr)
519519 let prAssetIdStr = asString(cfg[idxPriceAssetId])
520520 let prAssetId = fromBase58String(prAssetIdStr)
521521 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
522522 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
523523 let poolStatus = asString(cfg[idxPoolStatus])
524524 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
525525 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
526526 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
527527 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
528528 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
529529 let curPriceX18 = if ((poolLPBalance == 0))
530530 then zeroBigInt
531531 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
532532 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
533533 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
534534 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
535535 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
536536 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
537- let $t02269923052 = match res {
537+ let $t02270023053 = match res {
538538 case _ =>
539539 if (if (if ($isInstanceOf($match0._1, "Int"))
540540 then if ($isInstanceOf($match0._3, "Int"))
541541 then if ($isInstanceOf($match0._4, "Int"))
542542 then if ($isInstanceOf($match0._5, "Int"))
543543 then $isInstanceOf($match0._6, "Int")
544544 else false
545545 else false
546546 else false
547547 else false)
548548 then (size($match0) == 13)
549549 else false)
550550 then {
551551 let calcLpAmt = $match0._1
552552 let curPriceCalc = $match0._3
553553 let amBalance = $match0._4
554554 let prBalance = $match0._5
555555 let lpEmission = $match0._6
556556 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
557557 }
558558 else throw("Couldn't cast types")
559559 }
560- let calcLpAmt = $t02269923052._1
561- let curPriceCalc = $t02269923052._2
562- let amBalance = $t02269923052._3
563- let prBalance = $t02269923052._4
564- let lpEmission = $t02269923052._5
560+ let calcLpAmt = $t02270023053._1
561+ let curPriceCalc = $t02270023053._2
562+ let amBalance = $t02270023053._3
563+ let prBalance = $t02270023053._4
564+ let lpEmission = $t02270023053._5
565565 $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))
566566 }
567567
568568
569569
570570 @Callable(i)
571571 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
572572 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
573573 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
574574 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
575575 let amAssetIdStr = asString(cfg[idxAmtAssetId])
576576 let amAssetId = fromBase58String(amAssetIdStr)
577577 let prAssetIdStr = asString(cfg[idxPriceAssetId])
578578 let prAssetId = fromBase58String(prAssetIdStr)
579579 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
580580 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
581581 let poolStatus = asString(cfg[idxPoolStatus])
582582 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
583583 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
584584 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
585585 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
586586 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
587587 let curPriceX18 = if ((poolLPBalance == 0))
588588 then zeroBigInt
589589 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
590590 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
591591 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
592592 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
593593 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
594594 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
595- let $t02562525978 = match res {
595+ let $t02562625979 = match res {
596596 case _ =>
597597 if (if (if ($isInstanceOf($match0._1, "Int"))
598598 then if ($isInstanceOf($match0._3, "Int"))
599599 then if ($isInstanceOf($match0._4, "Int"))
600600 then if ($isInstanceOf($match0._5, "Int"))
601601 then $isInstanceOf($match0._6, "Int")
602602 else false
603603 else false
604604 else false
605605 else false)
606606 then (size($match0) == 13)
607607 else false)
608608 then {
609609 let calcLpAmt = $match0._1
610610 let curPriceCalc = $match0._3
611611 let amBalance = $match0._4
612612 let prBalance = $match0._5
613613 let lpEmission = $match0._6
614614 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
615615 }
616616 else throw("Couldn't cast types")
617617 }
618- let calcLpAmt = $t02562525978._1
619- let curPriceCalc = $t02562525978._2
620- let amBalance = $t02562525978._3
621- let prBalance = $t02562525978._4
622- let lpEmission = $t02562525978._5
618+ let calcLpAmt = $t02562625979._1
619+ let curPriceCalc = $t02562625979._2
620+ let amBalance = $t02562625979._3
621+ let prBalance = $t02562625979._4
622+ let lpEmission = $t02562625979._5
623623 $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))
624624 }
625625
626626
627627
628628 @Callable(i)
629629 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
630630 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
631631 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
632- let $t02667327090 = match res {
632+ let $t02667427091 = match res {
633633 case _ =>
634634 if (if (if ($isInstanceOf($match0._1, "Int"))
635635 then if ($isInstanceOf($match0._2, "Int"))
636636 then if ($isInstanceOf($match0._5, "Int"))
637637 then if ($isInstanceOf($match0._6, "Int"))
638638 then if ($isInstanceOf($match0._7, "Int"))
639639 then if ($isInstanceOf($match0._8, "String"))
640640 then $isInstanceOf($match0._9, "String")
641641 else false
642642 else false
643643 else false
644644 else false
645645 else false
646646 else false)
647647 then (size($match0) == 10)
648648 else false)
649649 then {
650650 let outAmAmt = $match0._1
651651 let outPrAmt = $match0._2
652652 let amBalance = $match0._5
653653 let prBalance = $match0._6
654654 let lpEmission = $match0._7
655655 let curPrice = $match0._8
656656 let poolStatus = $match0._9
657657 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
658658 }
659659 else throw("Couldn't cast types")
660660 }
661- let outAmAmt = $t02667327090._1
662- let outPrAmt = $t02667327090._2
663- let amBalance = $t02667327090._3
664- let prBalance = $t02667327090._4
665- let lpEmission = $t02667327090._5
666- let curPrice = $t02667327090._6
667- let poolStatus = $t02667327090._7
661+ let outAmAmt = $t02667427091._1
662+ let outPrAmt = $t02667427091._2
663+ let amBalance = $t02667427091._3
664+ let prBalance = $t02667427091._4
665+ let lpEmission = $t02667427091._5
666+ let curPrice = $t02667427091._6
667+ let poolStatus = $t02667427091._7
668668 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
669669 }
670670
671671
672672
673673 @Callable(i)
674674 func gwxUserInfoREADONLY (userAddress) = {
675675 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
676676 let gwxAmount = asInt(gwxUserInfoLIST[0])
677677 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
678+ }
679+
680+
681+
682+@Callable(i)
683+func unstakeAndGetOneTknV2 (poolAddress,unstakeAmount,outAssetId,minOutAmount) = {
684+ let inv = invoke(addressFromStringValue(poolAddress), "unstakeAndGetOneTknV2", [unstakeAmount, outAssetId, minOutAmount], nil)
685+ if ((inv == inv))
686+ then $Tuple2(nil, unit)
687+ else throw("Strict value is not equal to itself.")
678688 }
679689
680690
681691
682692 @Callable(i)
683693 func getKeysBulkInternal (currentIter,keys,resAcc) = if ((currentIter == size(keys)))
684694 then $Tuple2(nil, resAcc)
685695 else {
686696 let k = split(keys[currentIter], "++")
687697 let addr = addressFromStringValue(k[0])
688698 let key = k[1]
689699 let type = k[2]
690700 let val = getKey(addr, key, type)
691701 let res = (resAcc :+ val)
692702 let inv = invoke(this, "getKeysBulkInternal", [(currentIter + 1), keys, res], nil)
693703 if ((inv == inv))
694704 then $Tuple2(nil, inv)
695705 else throw("Strict value is not equal to itself.")
696706 }
697707
698708
699709
700710 @Callable(i)
701711 func getKeysBulk (keys) = {
702712 let res = invoke(this, "getKeysBulkInternal", [0, keys, nil], nil)
703713 $Tuple2(nil, res)
704714 }
705715
706716
707717
708718 @Callable(i)
709719 func setManager (pendingManagerPublicKey) = {
710720 let checkCaller = mustManager(i)
711721 if ((checkCaller == checkCaller))
712722 then {
713723 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
714724 if ((checkManagerPublicKey == checkManagerPublicKey))
715725 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
716726 else throw("Strict value is not equal to itself.")
717727 }
718728 else throw("Strict value is not equal to itself.")
719729 }
720730
721731
722732
723733 @Callable(i)
724734 func confirmManager () = {
725735 let pm = pendingManagerPublicKeyOrUnit()
726736 let hasPM = if (isDefined(pm))
727737 then true
728738 else throw("No pending manager")
729739 if ((hasPM == hasPM))
730740 then {
731741 let checkPM = if ((i.callerPublicKey == value(pm)))
732742 then true
733743 else throw("You are not pending manager")
734744 if ((checkPM == checkPM))
735745 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
736746 else throw("Strict value is not equal to itself.")
737747 }
738748 else throw("Strict value is not equal to itself.")
739749 }
740750
741751
742752 @Verifier(tx)
743753 func verify () = {
744754 let targetPublicKey = match managerPublicKeyOrUnit() {
745755 case pk: ByteVector =>
746756 pk
747757 case _: Unit =>
748758 tx.senderPublicKey
749759 case _ =>
750760 throw("Match error")
751761 }
752762 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
753763 }
754764

github/deemru/w8io/026f985 
79.33 ms