tx · 9qUJaoWgwnqcJp1GHWhNckqxGHLkTvEWejJPTpsYF6n1 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02900000 Waves 2022.09.21 16:55 [2238986] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "9qUJaoWgwnqcJp1GHWhNckqxGHLkTvEWejJPTpsYF6n1", "fee": 2900000, "feeAssetId": null, "timestamp": 1663768553644, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "tZngfqqHgcsiJAgPBu2fLdMTQ1Y9Xe1hxFgqSE2TosJCEjoRFLkCJVoomsJUV3Vn4vVpYSUpVHCHYrWp2pzfWUy" ], "script": "base64:BgJfCAISAwoBCBIDCgEIEgQKAggIEgkKBwEREREYCBgSBwoFERERGAgSBwoFAQEBCAgSABIDCgEIEgQKAggBEgQKAggBEgQKAggBEgMKAQgSCQoHCAEBAQEIARIDCgEIEgBbAAZTQ0FMRTgACAAFTVVMVDgAgMLXLwAHU0NBTEUxOAASAAZNVUxUMTgJALYCAQCAgJC7utat8A0AA1NFUAICX18ADlBPT0xXRUlHSFRNVUxUBQVNVUxUOAAKemVyb0JpZ0ludAkAtgIBAAAADmlkeFBvb2xBZGRyZXNzAAEADWlkeFBvb2xTdGF0dXMAAgAQaWR4UG9vbExQQXNzZXRJZAADAA1pZHhBbXRBc3NldElkAAQAD2lkeFByaWNlQXNzZXRJZAAFAA5pZHhBbXRBc3NldERjbQAGABBpZHhQcmljZUFzc2V0RGNtAAcADmlkeElBbXRBc3NldElkAAgAEGlkeElQcmljZUFzc2V0SWQACQANaWR4TFBBc3NldERjbQAKAQ9nZXRTdHJpbmdPckZhaWwBA2tleQkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCiCAEFA2tleQkArAICCQCsAgICD21hbmRhdG9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0JAMwIAgkBC0RlbGV0ZUVudHJ5AQkBGmtleVBlbmRpbmdNYW5hZ2VyUHVibGljS2V5AAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQPdGFyZ2V0UHVibGljS2V5BAckbWF0Y2gwCQEWbWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQCcGsFByRtYXRjaDAFAnBrAwkAAQIFByRtYXRjaDACBFVuaXQIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5LmneQQ==", "chainId": 84, "height": 2238986, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GAz5qJeexwtxMn3XVi1oWXmh7oEPwHwR4db9rnxCt9Kg Next: Es8ETfAtXaxVP2jM559cb6rZ3EBC4vueqrGDYktHDLfU Diff:
Old | New | Differences | |
---|---|---|---|
226 | 226 | ||
227 | 227 | ||
228 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
229 | + | ||
230 | + | ||
231 | + | func getPoolFee (poolAddress) = { | |
232 | + | let feeDefault = fraction(5, SCALE8, 10000) | |
233 | + | let keyFee = "%s__fee" | |
234 | + | valueOrElse(getInteger(poolAddress, keyFee), feeDefault) | |
235 | + | } | |
229 | 236 | ||
230 | 237 | ||
231 | 238 | let factoryDapp = readFactoryAddressOrFail() | |
480 | 487 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
481 | 488 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
482 | 489 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
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 | - | } | |
490 | + | let fee = getPoolFee(poolAddress) | |
489 | 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)) | |
490 | 492 | } | |
491 | 493 | ||
516 | 518 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
517 | 519 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
518 | 520 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
519 | - | let $ | |
521 | + | let $t02207622429 = match res { | |
520 | 522 | case _ => | |
521 | 523 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
522 | 524 | then if ($isInstanceOf($match0._3, "Int")) | |
539 | 541 | } | |
540 | 542 | else throw("Couldn't cast types") | |
541 | 543 | } | |
542 | - | let calcLpAmt = $ | |
543 | - | let curPriceCalc = $ | |
544 | - | let amBalance = $ | |
545 | - | let prBalance = $ | |
546 | - | let lpEmission = $ | |
544 | + | let calcLpAmt = $t02207622429._1 | |
545 | + | let curPriceCalc = $t02207622429._2 | |
546 | + | let amBalance = $t02207622429._3 | |
547 | + | let prBalance = $t02207622429._4 | |
548 | + | let lpEmission = $t02207622429._5 | |
547 | 549 | $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 | 550 | } | |
549 | 551 | ||
574 | 576 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
575 | 577 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
576 | 578 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
577 | - | let $ | |
579 | + | let $t02500225355 = match res { | |
578 | 580 | case _ => | |
579 | 581 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
580 | 582 | then if ($isInstanceOf($match0._3, "Int")) | |
597 | 599 | } | |
598 | 600 | else throw("Couldn't cast types") | |
599 | 601 | } | |
600 | - | let calcLpAmt = $ | |
601 | - | let curPriceCalc = $ | |
602 | - | let amBalance = $ | |
603 | - | let prBalance = $ | |
604 | - | let lpEmission = $ | |
602 | + | let calcLpAmt = $t02500225355._1 | |
603 | + | let curPriceCalc = $t02500225355._2 | |
604 | + | let amBalance = $t02500225355._3 | |
605 | + | let prBalance = $t02500225355._4 | |
606 | + | let lpEmission = $t02500225355._5 | |
605 | 607 | $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 | 608 | } | |
607 | 609 | ||
611 | 613 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
612 | 614 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
613 | 615 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
614 | - | let $ | |
616 | + | let $t02605026467 = match res { | |
615 | 617 | case _ => | |
616 | 618 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
617 | 619 | then if ($isInstanceOf($match0._2, "Int")) | |
640 | 642 | } | |
641 | 643 | else throw("Couldn't cast types") | |
642 | 644 | } | |
643 | - | let outAmAmt = $ | |
644 | - | let outPrAmt = $ | |
645 | - | let amBalance = $ | |
646 | - | let prBalance = $ | |
647 | - | let lpEmission = $ | |
648 | - | let curPrice = $ | |
649 | - | let poolStatus = $ | |
645 | + | let outAmAmt = $t02605026467._1 | |
646 | + | let outPrAmt = $t02605026467._2 | |
647 | + | let amBalance = $t02605026467._3 | |
648 | + | let prBalance = $t02605026467._4 | |
649 | + | let lpEmission = $t02605026467._5 | |
650 | + | let curPrice = $t02605026467._6 | |
651 | + | let poolStatus = $t02605026467._7 | |
650 | 652 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
651 | 653 | } | |
652 | 654 |
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 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
229 | + | ||
230 | + | ||
231 | + | func getPoolFee (poolAddress) = { | |
232 | + | let feeDefault = fraction(5, SCALE8, 10000) | |
233 | + | let keyFee = "%s__fee" | |
234 | + | valueOrElse(getInteger(poolAddress, keyFee), feeDefault) | |
235 | + | } | |
229 | 236 | ||
230 | 237 | ||
231 | 238 | let factoryDapp = readFactoryAddressOrFail() | |
232 | 239 | ||
233 | 240 | let factoryCfg = readFactoryCfgOrFail(factoryDapp) | |
234 | 241 | ||
235 | 242 | let emissionDapp = getEmissionAddressOrFail(factoryCfg) | |
236 | 243 | ||
237 | 244 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
238 | 245 | ||
239 | 246 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
240 | 247 | ||
241 | 248 | let boostingDapp = getBoostingAddressOrFail(factoryCfg) | |
242 | 249 | ||
243 | 250 | func internalCurrentRewardRate (lpAssetId) = { | |
244 | 251 | let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
245 | 252 | let poolWeightMult = MULT8 | |
246 | 253 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
247 | 254 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
248 | 255 | let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent()) | |
249 | 256 | let boostMaxCoeff = 3 | |
250 | 257 | let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff) | |
251 | 258 | let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult) | |
252 | 259 | let maxFactor = (boostMaxCoeff * MULT8) | |
253 | 260 | let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId)) | |
254 | 261 | [poolWxEmissionPerBlock, maxFactor, totalLpStaked] | |
255 | 262 | } | |
256 | 263 | ||
257 | 264 | ||
258 | 265 | func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = { | |
259 | 266 | let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration) | |
260 | 267 | let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8) | |
261 | 268 | [gWxAmountStart] | |
262 | 269 | } | |
263 | 270 | ||
264 | 271 | ||
265 | 272 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
266 | 273 | case s: String => | |
267 | 274 | fromBase58String(s) | |
268 | 275 | case _: Unit => | |
269 | 276 | unit | |
270 | 277 | case _ => | |
271 | 278 | throw("Match error") | |
272 | 279 | } | |
273 | 280 | ||
274 | 281 | ||
275 | 282 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
276 | 283 | case s: String => | |
277 | 284 | fromBase58String(s) | |
278 | 285 | case _: Unit => | |
279 | 286 | unit | |
280 | 287 | case _ => | |
281 | 288 | throw("Match error") | |
282 | 289 | } | |
283 | 290 | ||
284 | 291 | ||
285 | 292 | func mustManager (i) = { | |
286 | 293 | let pd = throw("Permission denied") | |
287 | 294 | match managerPublicKeyOrUnit() { | |
288 | 295 | case pk: ByteVector => | |
289 | 296 | if ((i.callerPublicKey == pk)) | |
290 | 297 | then true | |
291 | 298 | else pd | |
292 | 299 | case _: Unit => | |
293 | 300 | if ((i.caller == this)) | |
294 | 301 | then true | |
295 | 302 | else pd | |
296 | 303 | case _ => | |
297 | 304 | throw("Match error") | |
298 | 305 | } | |
299 | 306 | } | |
300 | 307 | ||
301 | 308 | ||
302 | 309 | @Callable(i) | |
303 | 310 | func constructor (factoryAddress) = { | |
304 | 311 | let checkCaller = mustManager(i) | |
305 | 312 | if ((checkCaller == checkCaller)) | |
306 | 313 | then [StringEntry(keyFactoryAddress(), factoryAddress)] | |
307 | 314 | else throw("Strict value is not equal to itself.") | |
308 | 315 | } | |
309 | 316 | ||
310 | 317 | ||
311 | 318 | ||
312 | 319 | @Callable(i) | |
313 | 320 | func currentRewardRateREADONLY (lpAssetId) = { | |
314 | 321 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
315 | 322 | let wxEmissionPerBlock = rewardData[0] | |
316 | 323 | let maxFactor = rewardData[1] | |
317 | 324 | let totalLpStaked = rewardData[2] | |
318 | 325 | $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP)) | |
319 | 326 | } | |
320 | 327 | ||
321 | 328 | ||
322 | 329 | ||
323 | 330 | @Callable(i) | |
324 | 331 | func currentUserRewardRateREADONLY (lpAssetId,userAddress) = { | |
325 | 332 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
326 | 333 | let wxEmissionPerBlock = rewardData[0] | |
327 | 334 | let maxFactor = rewardData[1] | |
328 | 335 | let totalLpStaked = rewardData[2] | |
329 | 336 | let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId)) | |
330 | 337 | let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP) | |
331 | 338 | let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart") | |
332 | 339 | let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart") | |
333 | 340 | let debug = userClaimInfo[7] | |
334 | 341 | let boostingPower = if ((boostRewardPart == 0)) | |
335 | 342 | then (1 * MULT8) | |
336 | 343 | else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart) | |
337 | 344 | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP)) | |
338 | 345 | } | |
339 | 346 | ||
340 | 347 | ||
341 | 348 | ||
342 | 349 | @Callable(i) | |
343 | 350 | func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk))) | |
344 | 351 | then $Tuple2(nil, resAcc) | |
345 | 352 | else { | |
346 | 353 | let deltaWxAmount = deltaWxAmountBulk[currentIter] | |
347 | 354 | let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter] | |
348 | 355 | let deltaLpAmount = deltaLpAmountBulk[currentIter] | |
349 | 356 | let lpAssetIdOpt = lpAssetIdOptBulk[currentIter] | |
350 | 357 | let info = { | |
351 | 358 | let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil) | |
352 | 359 | if ($isInstanceOf(@, "String")) | |
353 | 360 | then @ | |
354 | 361 | else throw(($getType(invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)) + " couldn't be cast to String")) | |
355 | 362 | } | |
356 | 363 | let res = (resAcc :+ info) | |
357 | 364 | let inv = { | |
358 | 365 | let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil) | |
359 | 366 | if ($isInstanceOf(@, "List[Any]")) | |
360 | 367 | then @ | |
361 | 368 | else throw(($getType(invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)) + " couldn't be cast to List[Any]")) | |
362 | 369 | } | |
363 | 370 | if ((inv == inv)) | |
364 | 371 | then $Tuple2(nil, inv) | |
365 | 372 | else throw("Strict value is not equal to itself.") | |
366 | 373 | } | |
367 | 374 | ||
368 | 375 | ||
369 | 376 | ||
370 | 377 | @Callable(i) | |
371 | 378 | func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
372 | 379 | let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil) | |
373 | 380 | $Tuple2(nil, res) | |
374 | 381 | } | |
375 | 382 | ||
376 | 383 | ||
377 | 384 | ||
378 | 385 | @Callable(i) | |
379 | 386 | func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
380 | 387 | let mathDapp = gwxRewardDapp | |
381 | 388 | let EMPTYSTR = "empty" | |
382 | 389 | let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4]) | |
383 | 390 | let lpAssetIdStr = if ((lpAssetIdOpt == "")) | |
384 | 391 | then EMPTYSTR | |
385 | 392 | else lpAssetIdOpt | |
386 | 393 | let userAddressStr = if ((userAddressOpt == "")) | |
387 | 394 | then EMPTYSTR | |
388 | 395 | else userAddressOpt | |
389 | 396 | let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR) | |
390 | 397 | let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0) | |
391 | 398 | let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height) | |
392 | 399 | let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0) | |
393 | 400 | let lockEnd = (lockStart + lockDuration) | |
394 | 401 | let remainingDuration = max([(lockEnd - height), 0]) | |
395 | 402 | let userAmountNew = (userAmount + deltaWxAmount) | |
396 | 403 | let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks]) | |
397 | 404 | let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0]) | |
398 | 405 | let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0] | |
399 | 406 | let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil)) | |
400 | 407 | let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount) | |
401 | 408 | let k = asInt(gWxParamsResultList[0]) | |
402 | 409 | let b = asInt(gWxParamsResultList[1]) | |
403 | 410 | let period = toString(asInt(gWxParamsResultList[2])) | |
404 | 411 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
405 | 412 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
406 | 413 | let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2) | |
407 | 414 | let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY) | |
408 | 415 | let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0) | |
409 | 416 | let MULT3 = 1000 | |
410 | 417 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3) | |
411 | 418 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
412 | 419 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
413 | 420 | let stakedByUser = readStaked(stakingDapp, stakedByUserKEY) | |
414 | 421 | let stakedTotal = readStaked(stakingDapp, stakedTotalKEY) | |
415 | 422 | let stakedByUserNew = (stakedByUser + deltaLpAmount) | |
416 | 423 | let stakedTotalNew = (stakedTotal + deltaLpAmount) | |
417 | 424 | let poolWeight = if ((lpAssetIdStr != EMPTYSTR)) | |
418 | 425 | then { | |
419 | 426 | let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
420 | 427 | getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
421 | 428 | } | |
422 | 429 | else 0 | |
423 | 430 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
424 | 431 | let wxPerLpX3 = if ((stakedTotalNew != 0)) | |
425 | 432 | then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew) | |
426 | 433 | else 0 | |
427 | 434 | let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8) | |
428 | 435 | let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2) | |
429 | 436 | let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff)) | |
430 | 437 | let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)]) | |
431 | 438 | let boostCoeff = if ((userWxPerBlockX3 == 0)) | |
432 | 439 | then (1 * MULT8) | |
433 | 440 | else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3) | |
434 | 441 | $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP)) | |
435 | 442 | } | |
436 | 443 | ||
437 | 444 | ||
438 | 445 | ||
439 | 446 | @Callable(i) | |
440 | 447 | func wxEmissionStatsREADONLY () = { | |
441 | 448 | let ONEMULT = toString(MULT8) | |
442 | 449 | let ONE = "1" | |
443 | 450 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
444 | 451 | let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock()) | |
445 | 452 | let passedBlocks = if ((emissionStartBlock > height)) | |
446 | 453 | then 0 | |
447 | 454 | else (height - emissionStartBlock) | |
448 | 455 | let teamEmDuration = (1440 * 365) | |
449 | 456 | let teamEmMax = (201000000 * MULT8) | |
450 | 457 | let teamEm = if ((passedBlocks > teamEmDuration)) | |
451 | 458 | then teamEmMax | |
452 | 459 | else fraction(teamEmMax, passedBlocks, teamEmDuration) | |
453 | 460 | let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm) | |
454 | 461 | let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount()) | |
455 | 462 | let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks()) | |
456 | 463 | let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount()) | |
457 | 464 | $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP)) | |
458 | 465 | } | |
459 | 466 | ||
460 | 467 | ||
461 | 468 | ||
462 | 469 | @Callable(i) | |
463 | 470 | func poolStatsREADONLY (lpAsset) = { | |
464 | 471 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
465 | 472 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
466 | 473 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
467 | 474 | let amtAssetId = asString(cfg[idxAmtAssetId]) | |
468 | 475 | let priceAssetId = asString(cfg[idxPriceAssetId]) | |
469 | 476 | let iAmtAssetId = asString(cfg[idxIAmtAssetId]) | |
470 | 477 | let iPriceAssetId = asString(cfg[idxIPriceAssetId]) | |
471 | 478 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
472 | 479 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
473 | 480 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
474 | 481 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)) | |
475 | 482 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)) | |
476 | 483 | let pricesList = if ((poolLPBalance == 0)) | |
477 | 484 | then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)] | |
478 | 485 | else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil)) | |
479 | 486 | let curPrice = 0 | |
480 | 487 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
481 | 488 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
482 | 489 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
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 | - | } | |
490 | + | let fee = getPoolFee(poolAddress) | |
489 | 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)) | |
490 | 492 | } | |
491 | 493 | ||
492 | 494 | ||
493 | 495 | ||
494 | 496 | @Callable(i) | |
495 | 497 | func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = { | |
496 | 498 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
497 | 499 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
498 | 500 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
499 | 501 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
500 | 502 | let amAssetId = fromBase58String(amAssetIdStr) | |
501 | 503 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
502 | 504 | let prAssetId = fromBase58String(prAssetIdStr) | |
503 | 505 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
504 | 506 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
505 | 507 | let poolStatus = asString(cfg[idxPoolStatus]) | |
506 | 508 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
507 | 509 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
508 | 510 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
509 | 511 | let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil))) | |
510 | 512 | let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil))) | |
511 | 513 | let curPriceX18 = if ((poolLPBalance == 0)) | |
512 | 514 | then zeroBigInt | |
513 | 515 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil))) | |
514 | 516 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
515 | 517 | let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil))) | |
516 | 518 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
517 | 519 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
518 | 520 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
519 | - | let $ | |
521 | + | let $t02207622429 = match res { | |
520 | 522 | case _ => | |
521 | 523 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
522 | 524 | then if ($isInstanceOf($match0._3, "Int")) | |
523 | 525 | then if ($isInstanceOf($match0._4, "Int")) | |
524 | 526 | then if ($isInstanceOf($match0._5, "Int")) | |
525 | 527 | then $isInstanceOf($match0._6, "Int") | |
526 | 528 | else false | |
527 | 529 | else false | |
528 | 530 | else false | |
529 | 531 | else false) | |
530 | 532 | then (size($match0) == 13) | |
531 | 533 | else false) | |
532 | 534 | then { | |
533 | 535 | let calcLpAmt = $match0._1 | |
534 | 536 | let curPriceCalc = $match0._3 | |
535 | 537 | let amBalance = $match0._4 | |
536 | 538 | let prBalance = $match0._5 | |
537 | 539 | let lpEmission = $match0._6 | |
538 | 540 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
539 | 541 | } | |
540 | 542 | else throw("Couldn't cast types") | |
541 | 543 | } | |
542 | - | let calcLpAmt = $ | |
543 | - | let curPriceCalc = $ | |
544 | - | let amBalance = $ | |
545 | - | let prBalance = $ | |
546 | - | let lpEmission = $ | |
544 | + | let calcLpAmt = $t02207622429._1 | |
545 | + | let curPriceCalc = $t02207622429._2 | |
546 | + | let amBalance = $t02207622429._3 | |
547 | + | let prBalance = $t02207622429._4 | |
548 | + | let lpEmission = $t02207622429._5 | |
547 | 549 | $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 | 550 | } | |
549 | 551 | ||
550 | 552 | ||
551 | 553 | ||
552 | 554 | @Callable(i) | |
553 | 555 | func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = { | |
554 | 556 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
555 | 557 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
556 | 558 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
557 | 559 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
558 | 560 | let amAssetId = fromBase58String(amAssetIdStr) | |
559 | 561 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
560 | 562 | let prAssetId = fromBase58String(prAssetIdStr) | |
561 | 563 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
562 | 564 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
563 | 565 | let poolStatus = asString(cfg[idxPoolStatus]) | |
564 | 566 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
565 | 567 | let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
566 | 568 | let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
567 | 569 | let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil))) | |
568 | 570 | let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil))) | |
569 | 571 | let curPriceX18 = if ((poolLPBalance == 0)) | |
570 | 572 | then zeroBigInt | |
571 | 573 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil))) | |
572 | 574 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
573 | 575 | let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil))) | |
574 | 576 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
575 | 577 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
576 | 578 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
577 | - | let $ | |
579 | + | let $t02500225355 = match res { | |
578 | 580 | case _ => | |
579 | 581 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
580 | 582 | then if ($isInstanceOf($match0._3, "Int")) | |
581 | 583 | then if ($isInstanceOf($match0._4, "Int")) | |
582 | 584 | then if ($isInstanceOf($match0._5, "Int")) | |
583 | 585 | then $isInstanceOf($match0._6, "Int") | |
584 | 586 | else false | |
585 | 587 | else false | |
586 | 588 | else false | |
587 | 589 | else false) | |
588 | 590 | then (size($match0) == 13) | |
589 | 591 | else false) | |
590 | 592 | then { | |
591 | 593 | let calcLpAmt = $match0._1 | |
592 | 594 | let curPriceCalc = $match0._3 | |
593 | 595 | let amBalance = $match0._4 | |
594 | 596 | let prBalance = $match0._5 | |
595 | 597 | let lpEmission = $match0._6 | |
596 | 598 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
597 | 599 | } | |
598 | 600 | else throw("Couldn't cast types") | |
599 | 601 | } | |
600 | - | let calcLpAmt = $ | |
601 | - | let curPriceCalc = $ | |
602 | - | let amBalance = $ | |
603 | - | let prBalance = $ | |
604 | - | let lpEmission = $ | |
602 | + | let calcLpAmt = $t02500225355._1 | |
603 | + | let curPriceCalc = $t02500225355._2 | |
604 | + | let amBalance = $t02500225355._3 | |
605 | + | let prBalance = $t02500225355._4 | |
606 | + | let lpEmission = $t02500225355._5 | |
605 | 607 | $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 | 608 | } | |
607 | 609 | ||
608 | 610 | ||
609 | 611 | ||
610 | 612 | @Callable(i) | |
611 | 613 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
612 | 614 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
613 | 615 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
614 | - | let $ | |
616 | + | let $t02605026467 = match res { | |
615 | 617 | case _ => | |
616 | 618 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
617 | 619 | then if ($isInstanceOf($match0._2, "Int")) | |
618 | 620 | then if ($isInstanceOf($match0._5, "Int")) | |
619 | 621 | then if ($isInstanceOf($match0._6, "Int")) | |
620 | 622 | then if ($isInstanceOf($match0._7, "Int")) | |
621 | 623 | then if ($isInstanceOf($match0._8, "String")) | |
622 | 624 | then $isInstanceOf($match0._9, "String") | |
623 | 625 | else false | |
624 | 626 | else false | |
625 | 627 | else false | |
626 | 628 | else false | |
627 | 629 | else false | |
628 | 630 | else false) | |
629 | 631 | then (size($match0) == 10) | |
630 | 632 | else false) | |
631 | 633 | then { | |
632 | 634 | let outAmAmt = $match0._1 | |
633 | 635 | let outPrAmt = $match0._2 | |
634 | 636 | let amBalance = $match0._5 | |
635 | 637 | let prBalance = $match0._6 | |
636 | 638 | let lpEmission = $match0._7 | |
637 | 639 | let curPrice = $match0._8 | |
638 | 640 | let poolStatus = $match0._9 | |
639 | 641 | $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus) | |
640 | 642 | } | |
641 | 643 | else throw("Couldn't cast types") | |
642 | 644 | } | |
643 | - | let outAmAmt = $ | |
644 | - | let outPrAmt = $ | |
645 | - | let amBalance = $ | |
646 | - | let prBalance = $ | |
647 | - | let lpEmission = $ | |
648 | - | let curPrice = $ | |
649 | - | let poolStatus = $ | |
645 | + | let outAmAmt = $t02605026467._1 | |
646 | + | let outPrAmt = $t02605026467._2 | |
647 | + | let amBalance = $t02605026467._3 | |
648 | + | let prBalance = $t02605026467._4 | |
649 | + | let lpEmission = $t02605026467._5 | |
650 | + | let curPrice = $t02605026467._6 | |
651 | + | let poolStatus = $t02605026467._7 | |
650 | 652 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
651 | 653 | } | |
652 | 654 | ||
653 | 655 | ||
654 | 656 | ||
655 | 657 | @Callable(i) | |
656 | 658 | func gwxUserInfoREADONLY (userAddress) = { | |
657 | 659 | let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil)) | |
658 | 660 | let gwxAmount = asInt(gwxUserInfoLIST[0]) | |
659 | 661 | $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP)) | |
660 | 662 | } | |
661 | 663 | ||
662 | 664 | ||
663 | 665 | ||
664 | 666 | @Callable(i) | |
665 | 667 | func unstakeAndGetOneTkn (poolAddress,amount,exchResult,notUsed,outAmount,outAssetId,slippage) = { | |
666 | 668 | let inv = invoke(addressFromStringValue(value(getString(addressFromStringValue(poolAddress), keyAddonAddr()))), "unstakeAndGetOneTkn", [amount, exchResult, notUsed, outAmount, outAssetId, slippage], nil) | |
667 | 669 | if ((inv == inv)) | |
668 | 670 | then $Tuple2(nil, unit) | |
669 | 671 | else throw("Strict value is not equal to itself.") | |
670 | 672 | } | |
671 | 673 | ||
672 | 674 | ||
673 | 675 | ||
674 | 676 | @Callable(i) | |
675 | 677 | func setManager (pendingManagerPublicKey) = { | |
676 | 678 | let checkCaller = mustManager(i) | |
677 | 679 | if ((checkCaller == checkCaller)) | |
678 | 680 | then { | |
679 | 681 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
680 | 682 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
681 | 683 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
682 | 684 | else throw("Strict value is not equal to itself.") | |
683 | 685 | } | |
684 | 686 | else throw("Strict value is not equal to itself.") | |
685 | 687 | } | |
686 | 688 | ||
687 | 689 | ||
688 | 690 | ||
689 | 691 | @Callable(i) | |
690 | 692 | func confirmManager () = { | |
691 | 693 | let pm = pendingManagerPublicKeyOrUnit() | |
692 | 694 | let hasPM = if (isDefined(pm)) | |
693 | 695 | then true | |
694 | 696 | else throw("No pending manager") | |
695 | 697 | if ((hasPM == hasPM)) | |
696 | 698 | then { | |
697 | 699 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
698 | 700 | then true | |
699 | 701 | else throw("You are not pending manager") | |
700 | 702 | if ((checkPM == checkPM)) | |
701 | 703 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
702 | 704 | else throw("Strict value is not equal to itself.") | |
703 | 705 | } | |
704 | 706 | else throw("Strict value is not equal to itself.") | |
705 | 707 | } | |
706 | 708 | ||
707 | 709 | ||
708 | 710 | @Verifier(tx) | |
709 | 711 | func verify () = { | |
710 | 712 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
711 | 713 | case pk: ByteVector => | |
712 | 714 | pk | |
713 | 715 | case _: Unit => | |
714 | 716 | tx.senderPublicKey | |
715 | 717 | case _ => | |
716 | 718 | throw("Match error") | |
717 | 719 | } | |
718 | 720 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
719 | 721 | } | |
720 | 722 |
github/deemru/w8io/026f985 93.42 ms ◑