tx · GAz5qJeexwtxMn3XVi1oWXmh7oEPwHwR4db9rnxCt9Kg 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02900000 Waves 2022.09.21 16:05 [2238933] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "GAz5qJeexwtxMn3XVi1oWXmh7oEPwHwR4db9rnxCt9Kg", "fee": 2900000, "feeAssetId": null, "timestamp": 1663765582291, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "Lv3u9aQEcv8NJaaEYVtEErjNgwpcdeX5k8ESQAwLqYeGtubgMNNJeq6r294bQubLhzsa675N62HmbpMG7CkmKh7" ], "script": "base64:BgJfCAISAwoBCBIDCgEIEgQKAggIEgkKBwEREREYCBgSBwoFERERGAgSBwoFAQEBCAgSABIDCgEIEgQKAggBEgQKAggBEgQKAggBEgMKAQgSCQoHCAEBAQEIARIDCgEIEgBaAAZTQ0FMRTgACAAFTVVMVDgAgMLXLwAHU0NBTEUxOAASAAZNVUxUMTgJALYCAQCAgJC7utat8A0AA1NFUAICX18ADlBPT0xXRUlHSFRNVUxUBQVNVUxUOAAKemVyb0JpZ0ludAkAtgIBAAAADmlkeFBvb2xBZGRyZXNzAAEADWlkeFBvb2xTdGF0dXMAAgAQaWR4UG9vbExQQXNzZXRJZAADAA1pZHhBbXRBc3NldElkAAQAD2lkeFByaWNlQXNzZXRJZAAFAA5pZHhBbXRBc3NldERjbQAGABBpZHhQcmljZUFzc2V0RGNtAAcADmlkeElBbXRBc3NldElkAAgAEGlkeElQcmljZUFzc2V0SWQACQANaWR4TFBBc3NldERjbQAKAQ9nZXRTdHJpbmdPckZhaWwBA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCiCAEFA2tleQkArAICCQCsAgICD21hbmRhdG9yeSB0aG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RTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA90YXJnZXRQdWJsaWNLZXkEByRtYXRjaDAJARZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAJwawUHJG1hdGNoMAUCcGsDCQABAgUHJG1hdGNoMAIEVW5pdAgFAnR4D3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXm0s5Eq", "chainId": 84, "height": 2238933, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GV5ontZhDSXmP5CqvEcwS6TyPSV7aNdx4tHC9hgx88Ri Next: 9qUJaoWgwnqcJp1GHWhNckqxGHLkTvEWejJPTpsYF6n1 Diff:
Old | New | Differences | |
---|---|---|---|
225 | 225 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
226 | 226 | ||
227 | 227 | ||
228 | - | let feeDefault = fraction(5, SCALE8, 10000) | |
229 | - | ||
230 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
231 | - | ||
232 | - | ||
233 | - | func keyFee () = "%s__fee" | |
234 | 229 | ||
235 | 230 | ||
236 | 231 | let factoryDapp = readFactoryAddressOrFail() | |
485 | 480 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
486 | 481 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
487 | 482 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
488 | - | let fee = valueOrElse(getInteger(poolAddress, keyFee()), feeDefault) | |
483 | + | let fee = { | |
484 | + | let @ = invoke(poolAddress, "getFeeREADONLY", nil, nil) | |
485 | + | if ($isInstanceOf(@, "Int")) | |
486 | + | then @ | |
487 | + | else throw(($getType(invoke(poolAddress, "getFeeREADONLY", nil, nil)) + " couldn't be cast to Int")) | |
488 | + | } | |
489 | 489 | $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)) | |
490 | 490 | } | |
491 | 491 | ||
516 | 516 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
517 | 517 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
518 | 518 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
519 | - | let $ | |
519 | + | let $t02193622289 = match res { | |
520 | 520 | case _ => | |
521 | 521 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
522 | 522 | then if ($isInstanceOf($match0._3, "Int")) | |
539 | 539 | } | |
540 | 540 | else throw("Couldn't cast types") | |
541 | 541 | } | |
542 | - | let calcLpAmt = $ | |
543 | - | let curPriceCalc = $ | |
544 | - | let amBalance = $ | |
545 | - | let prBalance = $ | |
546 | - | let lpEmission = $ | |
542 | + | let calcLpAmt = $t02193622289._1 | |
543 | + | let curPriceCalc = $t02193622289._2 | |
544 | + | let amBalance = $t02193622289._3 | |
545 | + | let prBalance = $t02193622289._4 | |
546 | + | let lpEmission = $t02193622289._5 | |
547 | 547 | $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)) | |
548 | 548 | } | |
549 | 549 | ||
574 | 574 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
575 | 575 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
576 | 576 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
577 | - | let $ | |
577 | + | let $t02486225215 = match res { | |
578 | 578 | case _ => | |
579 | 579 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
580 | 580 | then if ($isInstanceOf($match0._3, "Int")) | |
597 | 597 | } | |
598 | 598 | else throw("Couldn't cast types") | |
599 | 599 | } | |
600 | - | let calcLpAmt = $ | |
601 | - | let curPriceCalc = $ | |
602 | - | let amBalance = $ | |
603 | - | let prBalance = $ | |
604 | - | let lpEmission = $ | |
600 | + | let calcLpAmt = $t02486225215._1 | |
601 | + | let curPriceCalc = $t02486225215._2 | |
602 | + | let amBalance = $t02486225215._3 | |
603 | + | let prBalance = $t02486225215._4 | |
604 | + | let lpEmission = $t02486225215._5 | |
605 | 605 | $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)) | |
606 | 606 | } | |
607 | 607 | ||
611 | 611 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
612 | 612 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
613 | 613 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
614 | - | let $ | |
614 | + | let $t02591026327 = match res { | |
615 | 615 | case _ => | |
616 | 616 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
617 | 617 | then if ($isInstanceOf($match0._2, "Int")) | |
640 | 640 | } | |
641 | 641 | else throw("Couldn't cast types") | |
642 | 642 | } | |
643 | - | let outAmAmt = $ | |
644 | - | let outPrAmt = $ | |
645 | - | let amBalance = $ | |
646 | - | let prBalance = $ | |
647 | - | let lpEmission = $ | |
648 | - | let curPrice = $ | |
649 | - | let poolStatus = $ | |
643 | + | let outAmAmt = $t02591026327._1 | |
644 | + | let outPrAmt = $t02591026327._2 | |
645 | + | let amBalance = $t02591026327._3 | |
646 | + | let prBalance = $t02591026327._4 | |
647 | + | let lpEmission = $t02591026327._5 | |
648 | + | let curPrice = $t02591026327._6 | |
649 | + | let poolStatus = $t02591026327._7 | |
650 | 650 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
651 | 651 | } | |
652 | 652 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let POOLWEIGHTMULT = MULT8 | |
15 | 15 | ||
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let idxPoolAddress = 1 | |
19 | 19 | ||
20 | 20 | let idxPoolStatus = 2 | |
21 | 21 | ||
22 | 22 | let idxPoolLPAssetId = 3 | |
23 | 23 | ||
24 | 24 | let idxAmtAssetId = 4 | |
25 | 25 | ||
26 | 26 | let idxPriceAssetId = 5 | |
27 | 27 | ||
28 | 28 | let idxAmtAssetDcm = 6 | |
29 | 29 | ||
30 | 30 | let idxPriceAssetDcm = 7 | |
31 | 31 | ||
32 | 32 | let idxIAmtAssetId = 8 | |
33 | 33 | ||
34 | 34 | let idxIPriceAssetId = 9 | |
35 | 35 | ||
36 | 36 | let idxLPAssetDcm = 10 | |
37 | 37 | ||
38 | 38 | func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func asAnyList (val) = match val { | |
51 | 51 | case valAnyLyst: List[Any] => | |
52 | 52 | valAnyLyst | |
53 | 53 | case _ => | |
54 | 54 | throw("fail to cast into List[Any]") | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func asInt (val) = match val { | |
59 | 59 | case valInt: Int => | |
60 | 60 | valInt | |
61 | 61 | case _ => | |
62 | 62 | throw("fail to cast into Int") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func asString (val) = match val { | |
67 | 67 | case valStr: String => | |
68 | 68 | valStr | |
69 | 69 | case _ => | |
70 | 70 | throw("fail to cast into String") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | let IdxFactoryCfgStakingDapp = 1 | |
84 | 84 | ||
85 | 85 | let IdxFactoryCfgBoostingDapp = 2 | |
86 | 86 | ||
87 | 87 | let IdxFactoryCfgIdoDapp = 3 | |
88 | 88 | ||
89 | 89 | let IdxFactoryCfgTeamDapp = 4 | |
90 | 90 | ||
91 | 91 | let IdxFactoryCfgEmissionDapp = 5 | |
92 | 92 | ||
93 | 93 | let IdxFactoryCfgRestDapp = 6 | |
94 | 94 | ||
95 | 95 | let IdxFactoryCfgSlippageDapp = 7 | |
96 | 96 | ||
97 | 97 | let IdxFactoryCfgGwxRewardDapp = 8 | |
98 | 98 | ||
99 | 99 | func keyFactoryCfg () = "%s__factoryConfig" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyFactoryLpList () = "%s__lpTokensList" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress())) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp]) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyBoostCfg () = "%s__config" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total" | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func keyTotalCachedGwx () = "%s%s__gwxCached__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
226 | 226 | ||
227 | 227 | ||
228 | - | let feeDefault = fraction(5, SCALE8, 10000) | |
229 | - | ||
230 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
231 | - | ||
232 | - | ||
233 | - | func keyFee () = "%s__fee" | |
234 | 229 | ||
235 | 230 | ||
236 | 231 | let factoryDapp = readFactoryAddressOrFail() | |
237 | 232 | ||
238 | 233 | let factoryCfg = readFactoryCfgOrFail(factoryDapp) | |
239 | 234 | ||
240 | 235 | let emissionDapp = getEmissionAddressOrFail(factoryCfg) | |
241 | 236 | ||
242 | 237 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
243 | 238 | ||
244 | 239 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
245 | 240 | ||
246 | 241 | let boostingDapp = getBoostingAddressOrFail(factoryCfg) | |
247 | 242 | ||
248 | 243 | func internalCurrentRewardRate (lpAssetId) = { | |
249 | 244 | let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
250 | 245 | let poolWeightMult = MULT8 | |
251 | 246 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
252 | 247 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
253 | 248 | let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent()) | |
254 | 249 | let boostMaxCoeff = 3 | |
255 | 250 | let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff) | |
256 | 251 | let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult) | |
257 | 252 | let maxFactor = (boostMaxCoeff * MULT8) | |
258 | 253 | let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId)) | |
259 | 254 | [poolWxEmissionPerBlock, maxFactor, totalLpStaked] | |
260 | 255 | } | |
261 | 256 | ||
262 | 257 | ||
263 | 258 | func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = { | |
264 | 259 | let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration) | |
265 | 260 | let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8) | |
266 | 261 | [gWxAmountStart] | |
267 | 262 | } | |
268 | 263 | ||
269 | 264 | ||
270 | 265 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
271 | 266 | case s: String => | |
272 | 267 | fromBase58String(s) | |
273 | 268 | case _: Unit => | |
274 | 269 | unit | |
275 | 270 | case _ => | |
276 | 271 | throw("Match error") | |
277 | 272 | } | |
278 | 273 | ||
279 | 274 | ||
280 | 275 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
281 | 276 | case s: String => | |
282 | 277 | fromBase58String(s) | |
283 | 278 | case _: Unit => | |
284 | 279 | unit | |
285 | 280 | case _ => | |
286 | 281 | throw("Match error") | |
287 | 282 | } | |
288 | 283 | ||
289 | 284 | ||
290 | 285 | func mustManager (i) = { | |
291 | 286 | let pd = throw("Permission denied") | |
292 | 287 | match managerPublicKeyOrUnit() { | |
293 | 288 | case pk: ByteVector => | |
294 | 289 | if ((i.callerPublicKey == pk)) | |
295 | 290 | then true | |
296 | 291 | else pd | |
297 | 292 | case _: Unit => | |
298 | 293 | if ((i.caller == this)) | |
299 | 294 | then true | |
300 | 295 | else pd | |
301 | 296 | case _ => | |
302 | 297 | throw("Match error") | |
303 | 298 | } | |
304 | 299 | } | |
305 | 300 | ||
306 | 301 | ||
307 | 302 | @Callable(i) | |
308 | 303 | func constructor (factoryAddress) = { | |
309 | 304 | let checkCaller = mustManager(i) | |
310 | 305 | if ((checkCaller == checkCaller)) | |
311 | 306 | then [StringEntry(keyFactoryAddress(), factoryAddress)] | |
312 | 307 | else throw("Strict value is not equal to itself.") | |
313 | 308 | } | |
314 | 309 | ||
315 | 310 | ||
316 | 311 | ||
317 | 312 | @Callable(i) | |
318 | 313 | func currentRewardRateREADONLY (lpAssetId) = { | |
319 | 314 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
320 | 315 | let wxEmissionPerBlock = rewardData[0] | |
321 | 316 | let maxFactor = rewardData[1] | |
322 | 317 | let totalLpStaked = rewardData[2] | |
323 | 318 | $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP)) | |
324 | 319 | } | |
325 | 320 | ||
326 | 321 | ||
327 | 322 | ||
328 | 323 | @Callable(i) | |
329 | 324 | func currentUserRewardRateREADONLY (lpAssetId,userAddress) = { | |
330 | 325 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
331 | 326 | let wxEmissionPerBlock = rewardData[0] | |
332 | 327 | let maxFactor = rewardData[1] | |
333 | 328 | let totalLpStaked = rewardData[2] | |
334 | 329 | let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId)) | |
335 | 330 | let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP) | |
336 | 331 | let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart") | |
337 | 332 | let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart") | |
338 | 333 | let debug = userClaimInfo[7] | |
339 | 334 | let boostingPower = if ((boostRewardPart == 0)) | |
340 | 335 | then (1 * MULT8) | |
341 | 336 | else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart) | |
342 | 337 | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP)) | |
343 | 338 | } | |
344 | 339 | ||
345 | 340 | ||
346 | 341 | ||
347 | 342 | @Callable(i) | |
348 | 343 | func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk))) | |
349 | 344 | then $Tuple2(nil, resAcc) | |
350 | 345 | else { | |
351 | 346 | let deltaWxAmount = deltaWxAmountBulk[currentIter] | |
352 | 347 | let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter] | |
353 | 348 | let deltaLpAmount = deltaLpAmountBulk[currentIter] | |
354 | 349 | let lpAssetIdOpt = lpAssetIdOptBulk[currentIter] | |
355 | 350 | let info = { | |
356 | 351 | let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil) | |
357 | 352 | if ($isInstanceOf(@, "String")) | |
358 | 353 | then @ | |
359 | 354 | else throw(($getType(invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)) + " couldn't be cast to String")) | |
360 | 355 | } | |
361 | 356 | let res = (resAcc :+ info) | |
362 | 357 | let inv = { | |
363 | 358 | let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil) | |
364 | 359 | if ($isInstanceOf(@, "List[Any]")) | |
365 | 360 | then @ | |
366 | 361 | else throw(($getType(invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)) + " couldn't be cast to List[Any]")) | |
367 | 362 | } | |
368 | 363 | if ((inv == inv)) | |
369 | 364 | then $Tuple2(nil, inv) | |
370 | 365 | else throw("Strict value is not equal to itself.") | |
371 | 366 | } | |
372 | 367 | ||
373 | 368 | ||
374 | 369 | ||
375 | 370 | @Callable(i) | |
376 | 371 | func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
377 | 372 | let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil) | |
378 | 373 | $Tuple2(nil, res) | |
379 | 374 | } | |
380 | 375 | ||
381 | 376 | ||
382 | 377 | ||
383 | 378 | @Callable(i) | |
384 | 379 | func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
385 | 380 | let mathDapp = gwxRewardDapp | |
386 | 381 | let EMPTYSTR = "empty" | |
387 | 382 | let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4]) | |
388 | 383 | let lpAssetIdStr = if ((lpAssetIdOpt == "")) | |
389 | 384 | then EMPTYSTR | |
390 | 385 | else lpAssetIdOpt | |
391 | 386 | let userAddressStr = if ((userAddressOpt == "")) | |
392 | 387 | then EMPTYSTR | |
393 | 388 | else userAddressOpt | |
394 | 389 | let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR) | |
395 | 390 | let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0) | |
396 | 391 | let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height) | |
397 | 392 | let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0) | |
398 | 393 | let lockEnd = (lockStart + lockDuration) | |
399 | 394 | let remainingDuration = max([(lockEnd - height), 0]) | |
400 | 395 | let userAmountNew = (userAmount + deltaWxAmount) | |
401 | 396 | let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks]) | |
402 | 397 | let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0]) | |
403 | 398 | let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0] | |
404 | 399 | let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil)) | |
405 | 400 | let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount) | |
406 | 401 | let k = asInt(gWxParamsResultList[0]) | |
407 | 402 | let b = asInt(gWxParamsResultList[1]) | |
408 | 403 | let period = toString(asInt(gWxParamsResultList[2])) | |
409 | 404 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
410 | 405 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
411 | 406 | let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2) | |
412 | 407 | let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY) | |
413 | 408 | let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0) | |
414 | 409 | let MULT3 = 1000 | |
415 | 410 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3) | |
416 | 411 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
417 | 412 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
418 | 413 | let stakedByUser = readStaked(stakingDapp, stakedByUserKEY) | |
419 | 414 | let stakedTotal = readStaked(stakingDapp, stakedTotalKEY) | |
420 | 415 | let stakedByUserNew = (stakedByUser + deltaLpAmount) | |
421 | 416 | let stakedTotalNew = (stakedTotal + deltaLpAmount) | |
422 | 417 | let poolWeight = if ((lpAssetIdStr != EMPTYSTR)) | |
423 | 418 | then { | |
424 | 419 | let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
425 | 420 | getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
426 | 421 | } | |
427 | 422 | else 0 | |
428 | 423 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
429 | 424 | let wxPerLpX3 = if ((stakedTotalNew != 0)) | |
430 | 425 | then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew) | |
431 | 426 | else 0 | |
432 | 427 | let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8) | |
433 | 428 | let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2) | |
434 | 429 | let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff)) | |
435 | 430 | let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)]) | |
436 | 431 | let boostCoeff = if ((userWxPerBlockX3 == 0)) | |
437 | 432 | then (1 * MULT8) | |
438 | 433 | else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3) | |
439 | 434 | $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP)) | |
440 | 435 | } | |
441 | 436 | ||
442 | 437 | ||
443 | 438 | ||
444 | 439 | @Callable(i) | |
445 | 440 | func wxEmissionStatsREADONLY () = { | |
446 | 441 | let ONEMULT = toString(MULT8) | |
447 | 442 | let ONE = "1" | |
448 | 443 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
449 | 444 | let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock()) | |
450 | 445 | let passedBlocks = if ((emissionStartBlock > height)) | |
451 | 446 | then 0 | |
452 | 447 | else (height - emissionStartBlock) | |
453 | 448 | let teamEmDuration = (1440 * 365) | |
454 | 449 | let teamEmMax = (201000000 * MULT8) | |
455 | 450 | let teamEm = if ((passedBlocks > teamEmDuration)) | |
456 | 451 | then teamEmMax | |
457 | 452 | else fraction(teamEmMax, passedBlocks, teamEmDuration) | |
458 | 453 | let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm) | |
459 | 454 | let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount()) | |
460 | 455 | let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks()) | |
461 | 456 | let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount()) | |
462 | 457 | $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP)) | |
463 | 458 | } | |
464 | 459 | ||
465 | 460 | ||
466 | 461 | ||
467 | 462 | @Callable(i) | |
468 | 463 | func poolStatsREADONLY (lpAsset) = { | |
469 | 464 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
470 | 465 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
471 | 466 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
472 | 467 | let amtAssetId = asString(cfg[idxAmtAssetId]) | |
473 | 468 | let priceAssetId = asString(cfg[idxPriceAssetId]) | |
474 | 469 | let iAmtAssetId = asString(cfg[idxIAmtAssetId]) | |
475 | 470 | let iPriceAssetId = asString(cfg[idxIPriceAssetId]) | |
476 | 471 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
477 | 472 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
478 | 473 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
479 | 474 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)) | |
480 | 475 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)) | |
481 | 476 | let pricesList = if ((poolLPBalance == 0)) | |
482 | 477 | then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)] | |
483 | 478 | else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil)) | |
484 | 479 | let curPrice = 0 | |
485 | 480 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
486 | 481 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
487 | 482 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
488 | - | let fee = valueOrElse(getInteger(poolAddress, keyFee()), feeDefault) | |
483 | + | let fee = { | |
484 | + | let @ = invoke(poolAddress, "getFeeREADONLY", nil, nil) | |
485 | + | if ($isInstanceOf(@, "Int")) | |
486 | + | then @ | |
487 | + | else throw(($getType(invoke(poolAddress, "getFeeREADONLY", nil, nil)) + " couldn't be cast to Int")) | |
488 | + | } | |
489 | 489 | $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)) | |
490 | 490 | } | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | ||
494 | 494 | @Callable(i) | |
495 | 495 | func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = { | |
496 | 496 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
497 | 497 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
498 | 498 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
499 | 499 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
500 | 500 | let amAssetId = fromBase58String(amAssetIdStr) | |
501 | 501 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
502 | 502 | let prAssetId = fromBase58String(prAssetIdStr) | |
503 | 503 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
504 | 504 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
505 | 505 | let poolStatus = asString(cfg[idxPoolStatus]) | |
506 | 506 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
507 | 507 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
508 | 508 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
509 | 509 | let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil))) | |
510 | 510 | let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil))) | |
511 | 511 | let curPriceX18 = if ((poolLPBalance == 0)) | |
512 | 512 | then zeroBigInt | |
513 | 513 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil))) | |
514 | 514 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
515 | 515 | let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil))) | |
516 | 516 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
517 | 517 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
518 | 518 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
519 | - | let $ | |
519 | + | let $t02193622289 = match res { | |
520 | 520 | case _ => | |
521 | 521 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
522 | 522 | then if ($isInstanceOf($match0._3, "Int")) | |
523 | 523 | then if ($isInstanceOf($match0._4, "Int")) | |
524 | 524 | then if ($isInstanceOf($match0._5, "Int")) | |
525 | 525 | then $isInstanceOf($match0._6, "Int") | |
526 | 526 | else false | |
527 | 527 | else false | |
528 | 528 | else false | |
529 | 529 | else false) | |
530 | 530 | then (size($match0) == 13) | |
531 | 531 | else false) | |
532 | 532 | then { | |
533 | 533 | let calcLpAmt = $match0._1 | |
534 | 534 | let curPriceCalc = $match0._3 | |
535 | 535 | let amBalance = $match0._4 | |
536 | 536 | let prBalance = $match0._5 | |
537 | 537 | let lpEmission = $match0._6 | |
538 | 538 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
539 | 539 | } | |
540 | 540 | else throw("Couldn't cast types") | |
541 | 541 | } | |
542 | - | let calcLpAmt = $ | |
543 | - | let curPriceCalc = $ | |
544 | - | let amBalance = $ | |
545 | - | let prBalance = $ | |
546 | - | let lpEmission = $ | |
542 | + | let calcLpAmt = $t02193622289._1 | |
543 | + | let curPriceCalc = $t02193622289._2 | |
544 | + | let amBalance = $t02193622289._3 | |
545 | + | let prBalance = $t02193622289._4 | |
546 | + | let lpEmission = $t02193622289._5 | |
547 | 547 | $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)) | |
548 | 548 | } | |
549 | 549 | ||
550 | 550 | ||
551 | 551 | ||
552 | 552 | @Callable(i) | |
553 | 553 | func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = { | |
554 | 554 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
555 | 555 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
556 | 556 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
557 | 557 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
558 | 558 | let amAssetId = fromBase58String(amAssetIdStr) | |
559 | 559 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
560 | 560 | let prAssetId = fromBase58String(prAssetIdStr) | |
561 | 561 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
562 | 562 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
563 | 563 | let poolStatus = asString(cfg[idxPoolStatus]) | |
564 | 564 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
565 | 565 | let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
566 | 566 | let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
567 | 567 | let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil))) | |
568 | 568 | let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil))) | |
569 | 569 | let curPriceX18 = if ((poolLPBalance == 0)) | |
570 | 570 | then zeroBigInt | |
571 | 571 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil))) | |
572 | 572 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
573 | 573 | let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil))) | |
574 | 574 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
575 | 575 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
576 | 576 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
577 | - | let $ | |
577 | + | let $t02486225215 = match res { | |
578 | 578 | case _ => | |
579 | 579 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
580 | 580 | then if ($isInstanceOf($match0._3, "Int")) | |
581 | 581 | then if ($isInstanceOf($match0._4, "Int")) | |
582 | 582 | then if ($isInstanceOf($match0._5, "Int")) | |
583 | 583 | then $isInstanceOf($match0._6, "Int") | |
584 | 584 | else false | |
585 | 585 | else false | |
586 | 586 | else false | |
587 | 587 | else false) | |
588 | 588 | then (size($match0) == 13) | |
589 | 589 | else false) | |
590 | 590 | then { | |
591 | 591 | let calcLpAmt = $match0._1 | |
592 | 592 | let curPriceCalc = $match0._3 | |
593 | 593 | let amBalance = $match0._4 | |
594 | 594 | let prBalance = $match0._5 | |
595 | 595 | let lpEmission = $match0._6 | |
596 | 596 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
597 | 597 | } | |
598 | 598 | else throw("Couldn't cast types") | |
599 | 599 | } | |
600 | - | let calcLpAmt = $ | |
601 | - | let curPriceCalc = $ | |
602 | - | let amBalance = $ | |
603 | - | let prBalance = $ | |
604 | - | let lpEmission = $ | |
600 | + | let calcLpAmt = $t02486225215._1 | |
601 | + | let curPriceCalc = $t02486225215._2 | |
602 | + | let amBalance = $t02486225215._3 | |
603 | + | let prBalance = $t02486225215._4 | |
604 | + | let lpEmission = $t02486225215._5 | |
605 | 605 | $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)) | |
606 | 606 | } | |
607 | 607 | ||
608 | 608 | ||
609 | 609 | ||
610 | 610 | @Callable(i) | |
611 | 611 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
612 | 612 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
613 | 613 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
614 | - | let $ | |
614 | + | let $t02591026327 = match res { | |
615 | 615 | case _ => | |
616 | 616 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
617 | 617 | then if ($isInstanceOf($match0._2, "Int")) | |
618 | 618 | then if ($isInstanceOf($match0._5, "Int")) | |
619 | 619 | then if ($isInstanceOf($match0._6, "Int")) | |
620 | 620 | then if ($isInstanceOf($match0._7, "Int")) | |
621 | 621 | then if ($isInstanceOf($match0._8, "String")) | |
622 | 622 | then $isInstanceOf($match0._9, "String") | |
623 | 623 | else false | |
624 | 624 | else false | |
625 | 625 | else false | |
626 | 626 | else false | |
627 | 627 | else false | |
628 | 628 | else false) | |
629 | 629 | then (size($match0) == 10) | |
630 | 630 | else false) | |
631 | 631 | then { | |
632 | 632 | let outAmAmt = $match0._1 | |
633 | 633 | let outPrAmt = $match0._2 | |
634 | 634 | let amBalance = $match0._5 | |
635 | 635 | let prBalance = $match0._6 | |
636 | 636 | let lpEmission = $match0._7 | |
637 | 637 | let curPrice = $match0._8 | |
638 | 638 | let poolStatus = $match0._9 | |
639 | 639 | $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus) | |
640 | 640 | } | |
641 | 641 | else throw("Couldn't cast types") | |
642 | 642 | } | |
643 | - | let outAmAmt = $ | |
644 | - | let outPrAmt = $ | |
645 | - | let amBalance = $ | |
646 | - | let prBalance = $ | |
647 | - | let lpEmission = $ | |
648 | - | let curPrice = $ | |
649 | - | let poolStatus = $ | |
643 | + | let outAmAmt = $t02591026327._1 | |
644 | + | let outPrAmt = $t02591026327._2 | |
645 | + | let amBalance = $t02591026327._3 | |
646 | + | let prBalance = $t02591026327._4 | |
647 | + | let lpEmission = $t02591026327._5 | |
648 | + | let curPrice = $t02591026327._6 | |
649 | + | let poolStatus = $t02591026327._7 | |
650 | 650 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | ||
655 | 655 | @Callable(i) | |
656 | 656 | func gwxUserInfoREADONLY (userAddress) = { | |
657 | 657 | let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil)) | |
658 | 658 | let gwxAmount = asInt(gwxUserInfoLIST[0]) | |
659 | 659 | $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP)) | |
660 | 660 | } | |
661 | 661 | ||
662 | 662 | ||
663 | 663 | ||
664 | 664 | @Callable(i) | |
665 | 665 | func unstakeAndGetOneTkn (poolAddress,amount,exchResult,notUsed,outAmount,outAssetId,slippage) = { | |
666 | 666 | let inv = invoke(addressFromStringValue(value(getString(addressFromStringValue(poolAddress), keyAddonAddr()))), "unstakeAndGetOneTkn", [amount, exchResult, notUsed, outAmount, outAssetId, slippage], nil) | |
667 | 667 | if ((inv == inv)) | |
668 | 668 | then $Tuple2(nil, unit) | |
669 | 669 | else throw("Strict value is not equal to itself.") | |
670 | 670 | } | |
671 | 671 | ||
672 | 672 | ||
673 | 673 | ||
674 | 674 | @Callable(i) | |
675 | 675 | func setManager (pendingManagerPublicKey) = { | |
676 | 676 | let checkCaller = mustManager(i) | |
677 | 677 | if ((checkCaller == checkCaller)) | |
678 | 678 | then { | |
679 | 679 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
680 | 680 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
681 | 681 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
682 | 682 | else throw("Strict value is not equal to itself.") | |
683 | 683 | } | |
684 | 684 | else throw("Strict value is not equal to itself.") | |
685 | 685 | } | |
686 | 686 | ||
687 | 687 | ||
688 | 688 | ||
689 | 689 | @Callable(i) | |
690 | 690 | func confirmManager () = { | |
691 | 691 | let pm = pendingManagerPublicKeyOrUnit() | |
692 | 692 | let hasPM = if (isDefined(pm)) | |
693 | 693 | then true | |
694 | 694 | else throw("No pending manager") | |
695 | 695 | if ((hasPM == hasPM)) | |
696 | 696 | then { | |
697 | 697 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
698 | 698 | then true | |
699 | 699 | else throw("You are not pending manager") | |
700 | 700 | if ((checkPM == checkPM)) | |
701 | 701 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
702 | 702 | else throw("Strict value is not equal to itself.") | |
703 | 703 | } | |
704 | 704 | else throw("Strict value is not equal to itself.") | |
705 | 705 | } | |
706 | 706 | ||
707 | 707 | ||
708 | 708 | @Verifier(tx) | |
709 | 709 | func verify () = { | |
710 | 710 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
711 | 711 | case pk: ByteVector => | |
712 | 712 | pk | |
713 | 713 | case _: Unit => | |
714 | 714 | tx.senderPublicKey | |
715 | 715 | case _ => | |
716 | 716 | throw("Match error") | |
717 | 717 | } | |
718 | 718 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
719 | 719 | } | |
720 | 720 |
github/deemru/w8io/026f985 90.50 ms ◑