tx · 4oNu7Vn258NYJJMAPgXR1Gw4qzb2DCBLQ54i9zUp3wL9 3MvvvqugsEM2Hkh6AikfEeY4h3U2gTG9rfd: -0.01000000 Waves 2021.11.24 14:19 [1805059] smart account 3MvvvqugsEM2Hkh6AikfEeY4h3U2gTG9rfd > SELF 0.00000000 Waves
{ "type": 13, "id": "4oNu7Vn258NYJJMAPgXR1Gw4qzb2DCBLQ54i9zUp3wL9", "fee": 1000000, "feeAssetId": null, "timestamp": 1637752747390, "version": 1, "sender": "3MvvvqugsEM2Hkh6AikfEeY4h3U2gTG9rfd", "senderPublicKey": "HPjKySzXXzrNXeESGBkFWjazoizq1V5K7U8pz6hugrL1", "proofs": [ "3sgNmuMCZLpAVdToXiCUsLkafMY6sfQuwAndnSsv9ZKqeehTL9N2mfUEdJpSYKFkaZ1EBQbrCSWqb7ughTacYxcp" ], "script": "base64:AAIFAAAAAAAAACAIAhIICgYICAEBAQgSAwoBARIDCgEBEgMKAQgSAwoBCAAAAEEAAAAAA1NFUAIAAAACX18AAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QABAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAdhZGRyZXNzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAAAxnZXRJbnRPclplcm8AAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkAAAAAAAAAAAABAAAADGdldEludE9yRmFpbAAAAAEAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQfAAAAAQUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuB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MbG9ja0R1cmF0aW9uAAAAAAAAAAAAAAAAAAAAAAAABQAAAAFpCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAt1c2VyQWRkcmVzcwUAAAAKdXNlckFtb3VudAUAAAAHYXNzZXRJZAAAAAFpAQAAABNnd3hVc2VySW5mb1JFQURPTkxZAAAAAQAAAAt1c2VyQWRkcmVzcwQAAAAFRU1QVFkCAAAABWVtcHR5BAAAABJ1c2VyMk51bU1hcHBpbmdLRVkJAQAAABJrZXlVc2VyMk51bU1hcHBpbmcAAAABBQAAAAt1c2VyQWRkcmVzcwQAAAAHdXNlck51bQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABCIAAAABBQAAABJ1c2VyMk51bU1hcHBpbmdLRVkFAAAABUVNUFRZBAAAAAFrCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHwAAAAEJAQAAAA1rZXlMb2NrUGFyYW1LAAAAAQUAAAAHdXNlck51bQAAAAAAAAAAAAQAAAABYgkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB8AAAABCQEAAAANa2V5TG9ja1BhcmFtQgAAAAEFAAAAB3VzZXJOdW0AAAAAAAAAAAAEAAAADWd3eEFtb3VudENhbGMJAQAAAA1jYWxjR3d4QW1vdW50AAAAAwUAAAABawUAAAABYgUAAAAGaGVpZ2h0BAAAAAlnd3hBbW91bnQDCQAAZgAAAAIAAAAAAAAAAAAFAAAADWd3eEFtb3VudENhbGMAAAAAAAAAAAAFAAAADWd3eEFtb3VudENhbGMJAAUUAAAAAgUAAAADbmlsCQAETAAAAAIFAAAACWd3eEFtb3VudAUAAAADbmlsAAAAABoN0kA=", "chainId": 84, "height": 1805059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B3J91EH4ShcoW8Xfm9Vw1bV6i2MaKwvMPosH7fLhjiaq Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let SCALE8 = 8 | |
7 | 7 | ||
8 | 8 | let MULT8 = 100000000 | |
9 | 9 | ||
10 | 10 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined")) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func getIntOrZero (key) = valueOrElse(getInteger(this, key), 0) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func getIntOrFail (key) = valueOrErrorMessage(getInteger(key), (("mandatory this." + key) + " is not defined")) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func asAnyList (val) = match val { | |
20 | 20 | case valAnyLyst: List[Any] => | |
21 | 21 | valAnyLyst | |
22 | 22 | case _ => | |
23 | 23 | throw("fail to cast into List[Any]") | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func asInt (val) = match val { | |
28 | 28 | case valInt: Int => | |
29 | 29 | valInt | |
30 | 30 | case _ => | |
31 | 31 | throw("fail to cast into Int") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | let IdxFactoryCfgStakingDapp = 1 | |
39 | 39 | ||
40 | 40 | let IdxFactoryCfgBoostingDapp = 2 | |
41 | 41 | ||
42 | 42 | let IdxFactoryCfgIdoDapp = 3 | |
43 | 43 | ||
44 | 44 | let IdxFactoryCfgTeamDapp = 4 | |
45 | 45 | ||
46 | 46 | let IdxFactoryCfgEmissionDapp = 5 | |
47 | 47 | ||
48 | 48 | let IdxFactoryCfgRestDapp = 6 | |
49 | 49 | ||
50 | 50 | let IdxFactoryCfgSlippageDapp = 7 | |
51 | 51 | ||
52 | 52 | func keyFactoryCfg () = "%s__factoryConfig" | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyFactoryLpList () = "%s__lpTokensList" | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress())) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func readFactoryCfgOrFail (factory) = split(getStringOrFail(factory, keyFactoryCfg()), SEP) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | let IdxCfgAssetId = 1 | |
86 | 86 | ||
87 | 87 | let IdxCfgMinLockAmount = 2 | |
88 | 88 | ||
89 | 89 | let IdxCfgMinLockDuration = 3 | |
90 | 90 | ||
91 | 91 | let IdxCfgMaxLockDuration = 4 | |
92 | 92 | ||
93 | 93 | let IdxCfgMathContract = 5 | |
94 | 94 | ||
95 | 95 | func keyConfig () = "%s__config" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func readConfigArrayOrFail () = split(getStringOrFail(this, keyConfig()), SEP) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func formatConfigS (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = makeString(["%s%d%d%d", assetId, minLockAmount, minLockDuration, maxLockDuration, mathContract], SEP) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func formatConfig (assetId,minLockAmount,minLockDuration,maxLockDuration,mathContract) = formatConfigS(assetId, toString(minLockAmount), toString(minLockDuration), toString(maxLockDuration), mathContract) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let IdxLockUserNum = 1 | |
108 | 108 | ||
109 | 109 | let IdxLockAmount = 2 | |
110 | 110 | ||
111 | 111 | let IdxLockStart = 3 | |
112 | 112 | ||
113 | 113 | let IdxLockDuration = 4 | |
114 | 114 | ||
115 | 115 | let IdxLockParamK = 5 | |
116 | 116 | ||
117 | 117 | let IdxLockParamB = 6 | |
118 | 118 | ||
119 | 119 | func keyLockParamsRecord (userAddress) = makeString(["%s%s__lock", userAddress], SEP) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func readLockParamsRecordOrFail (userAddress) = split(getStringOrFail(this, keyLockParamsRecord(userAddress)), SEP) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func formatLockParamsRecordS (userNum,amount,start,duration,paramK,paramB,lastUpdTimestamp,gwxAmount) = makeString(["%d%d%d%d%d%d%d%d", userNum, amount, start, duration, paramK, paramB, lastUpdTimestamp, gwxAmount], SEP) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func formatLockParamsRecord (userNum,amount,start,duration,paramK,paramB,gwxAmount) = formatLockParamsRecordS(userNum, toString(amount), toString(start), toString(duration), toString(paramK), toString(paramB), toString(lastBlock.timestamp), toString(gwxAmount)) | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyNextUserNum () = "%s__nextUserNum" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func keyLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func keyStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func keyStatsLocksCount () = "%s%s__stats__locksCount" | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func keyStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func HistoryEntry (type,user,amount,lockStart,duration,k,b,i) = { | |
174 | 174 | let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP) | |
175 | 175 | let historyDATA = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(amount), toString(lockStart), toString(duration), toString(k), toString(b)], SEP) | |
176 | 176 | StringEntry(historyKEY, historyDATA) | |
177 | 177 | } | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func StatsEntry (totalLockedInc,durationInc,lockCountInc,usersCountInc) = { | |
181 | 181 | let locksDurationSumInBlocksKEY = keyStatsLocksDurationSumInBlocks() | |
182 | 182 | let locksCountKEY = keyStatsLocksCount() | |
183 | 183 | let usersCountKEY = keyStatsUsersCount() | |
184 | 184 | let totalAmountKEY = keyLockParamTotalAmount() | |
185 | 185 | let locksDurationSumInBlocks = getIntOrZero(locksCountKEY) | |
186 | 186 | let locksCount = getIntOrZero(locksCountKEY) | |
187 | 187 | let usersCount = getIntOrZero(usersCountKEY) | |
188 | 188 | let totalAmount = getIntOrZero(totalAmountKEY) | |
189 | 189 | [IntegerEntry(locksDurationSumInBlocksKEY, (locksDurationSumInBlocks + durationInc)), IntegerEntry(locksCountKEY, (locksCount + lockCountInc)), IntegerEntry(usersCountKEY, (usersCount + usersCountInc)), IntegerEntry(totalAmountKEY, (totalAmount + totalLockedInc))] | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func calcGwxAmount (kRaw,bRaw,h) = { | |
194 | 194 | let SCALE = 1000 | |
195 | 195 | (((kRaw * h) + bRaw) / SCALE) | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func LockParamsEntry (userAddress,userNum,amount,start,duration,k,b,period) = { | |
200 | 200 | let userAmountKEY = keyLockParamUserAmount(userNum) | |
201 | 201 | let startBlockKEY = keyLockParamStartBlock(userNum) | |
202 | 202 | let durationKEY = keyLockParamDuration(userNum) | |
203 | 203 | let kKEY = keyLockParamK(userNum) | |
204 | 204 | let bKEY = keyLockParamB(userNum) | |
205 | 205 | let kByPerioKEY = keyLockParamByPeriodK(userNum, period) | |
206 | 206 | let bByPeriodKEY = keyLockParamByPeriodB(userNum, period) | |
207 | 207 | let gwxAmount = calcGwxAmount(k, b, height) | |
208 | 208 | [IntegerEntry(userAmountKEY, amount), IntegerEntry(startBlockKEY, start), IntegerEntry(durationKEY, duration), IntegerEntry(kKEY, k), IntegerEntry(bKEY, b), IntegerEntry(kByPerioKEY, k), IntegerEntry(bByPeriodKEY, b), StringEntry(keyLockParamsRecord(userAddress), formatLockParamsRecord(userNum, amount, start, duration, k, b, gwxAmount))] | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func extractOptionalPaymentAmountOrFail (i,expectedAssetId) = if ((size(i.payments) > 1)) | |
213 | 213 | then throw("only one payment is allowed") | |
214 | 214 | else if ((size(i.payments) == 0)) | |
215 | 215 | then 0 | |
216 | 216 | else { | |
217 | 217 | let pmt = i.payments[0] | |
218 | 218 | if ((value(pmt.assetId) != expectedAssetId)) | |
219 | 219 | then throw("invalid asset id in payment") | |
220 | 220 | else pmt.amount | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(i) | |
225 | 225 | func constructor (factoryAddressStr,lockAssetIdStr,minLockAmount,minDuration,maxDuration,mathContract) = if ((this != i.caller)) | |
226 | 226 | then throw("not authorized") | |
227 | 227 | else ([IntegerEntry(keyNextUserNum(), 0), StringEntry(keyConfig(), formatConfig(lockAssetIdStr, minLockAmount, minDuration, maxDuration, mathContract)), StringEntry(keyFactoryAddress(), factoryAddressStr)] ++ StatsEntry(0, 0, 0, 0)) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | ||
231 | 231 | @Callable(i) | |
232 | 232 | func lock (duration) = { | |
233 | 233 | let cfgArray = readConfigArrayOrFail() | |
234 | 234 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
235 | 235 | let assetId = fromBase58String(assetIdStr) | |
236 | 236 | let minLockAmount = parseIntValue(cfgArray[IdxCfgMinLockAmount]) | |
237 | 237 | let minLockDuration = parseIntValue(cfgArray[IdxCfgMinLockDuration]) | |
238 | 238 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
239 | 239 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
240 | 240 | if ((size(i.payments) != 1)) | |
241 | 241 | then throw("invalid payment - exact one payment must be attached") | |
242 | 242 | else { | |
243 | 243 | let pmt = i.payments[0] | |
244 | 244 | let pmtAmount = pmt.amount | |
245 | 245 | if ((assetId != value(pmt.assetId))) | |
246 | 246 | then throw((("invalid asset is in payment - " + assetIdStr) + " is expected")) | |
247 | 247 | else { | |
248 | 248 | let nextUserNumKEY = keyNextUserNum() | |
249 | 249 | let userAddressStr = toString(i.caller) | |
250 | 250 | let userIsExisting = isDefined(getString(keyUser2NumMapping(userAddressStr))) | |
251 | 251 | let userNumStr = if (userIsExisting) | |
252 | 252 | then value(getString(keyUser2NumMapping(userAddressStr))) | |
253 | 253 | else toString(getIntOrFail(nextUserNumKEY)) | |
254 | 254 | let userNum = parseIntValue(userNumStr) | |
255 | 255 | let lockStart = height | |
256 | 256 | let startBlockKEY = keyLockParamStartBlock(userNumStr) | |
257 | 257 | let durationKEY = keyLockParamDuration(userNumStr) | |
258 | 258 | let userAmountKEY = keyLockParamUserAmount(userNumStr) | |
259 | 259 | let userAmount = getIntOrZero(userAmountKEY) | |
260 | 260 | if ((minLockAmount > pmtAmount)) | |
261 | 261 | then throw(("amount is less then minLockAmount=" + toString(minLockAmount))) | |
262 | 262 | else if ((minLockDuration > duration)) | |
263 | 263 | then throw(("passed duration is less then minLockDuration=" + toString(minLockDuration))) | |
264 | 264 | else if ((duration > maxLockDuration)) | |
265 | 265 | then throw(("passed duration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
266 | 266 | else if (if (userIsExisting) | |
267 | 267 | then ((getIntOrFail(startBlockKEY) + getIntOrFail(durationKEY)) >= lockStart) | |
268 | 268 | else false) | |
269 | 269 | then throw("there is an active lock - consider to use increaseLock") | |
270 | 270 | else { | |
271 | 271 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [pmtAmount, lockStart, duration], nil)) | |
272 | 272 | let k = asInt(gWxParamsResultList[0]) | |
273 | 273 | let b = asInt(gWxParamsResultList[1]) | |
274 | 274 | let period = toString(asInt(gWxParamsResultList[2])) | |
275 | 275 | let arr = if (userIsExisting) | |
276 | 276 | then nil | |
277 | 277 | else [IntegerEntry(nextUserNumKEY, (userNum + 1)), StringEntry(keyUser2NumMapping(userAddressStr), userNumStr), StringEntry(keyNum2UserMapping(userNumStr), userAddressStr)] | |
278 | 278 | (((arr ++ LockParamsEntry(userAddressStr, userNumStr, pmtAmount, lockStart, duration, k, b, period)) ++ StatsEntry(pmtAmount, duration, 1, if (userIsExisting) | |
279 | 279 | then 0 | |
280 | 280 | else 1)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, duration, k, b, i)) | |
281 | 281 | } | |
282 | 282 | } | |
283 | 283 | } | |
284 | 284 | } | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | ||
288 | 288 | @Callable(i) | |
289 | 289 | func increaseLock (deltaDuration) = { | |
290 | 290 | let cfgArray = readConfigArrayOrFail() | |
291 | 291 | let assetIdStr = cfgArray[IdxCfgAssetId] | |
292 | 292 | let assetId = fromBase58String(assetIdStr) | |
293 | 293 | let maxLockDuration = parseIntValue(cfgArray[IdxCfgMaxLockDuration]) | |
294 | 294 | let mathContract = addressFromStringValue(cfgArray[IdxCfgMathContract]) | |
295 | 295 | let pmtAmount = extractOptionalPaymentAmountOrFail(i, assetId) | |
296 | 296 | let userAddressStr = toString(i.caller) | |
297 | 297 | let userRecordArray = readLockParamsRecordOrFail(userAddressStr) | |
298 | 298 | let userNumStr = userRecordArray[IdxLockUserNum] | |
299 | 299 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
300 | 300 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
301 | 301 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
302 | 302 | let lockEnd = (lockStart + lockDuration) | |
303 | 303 | let newAmount = (userAmount + pmtAmount) | |
304 | 304 | let newLockDuration = (lockDuration + deltaDuration) | |
305 | 305 | if ((0 > deltaDuration)) | |
306 | 306 | then throw("duration is less then zero") | |
307 | 307 | else if ((newLockDuration > maxLockDuration)) | |
308 | 308 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(maxLockDuration))) | |
309 | 309 | else if (if ((height >= lockEnd)) | |
310 | 310 | then (userAmount > 0) | |
311 | 311 | else false) | |
312 | 312 | then throw("there is an expired lock - need to unlock before new lock") | |
313 | 313 | else { | |
314 | 314 | let gWxParamsResultList = asAnyList(invoke(mathContract, "calcGwxParamsREADONLY", [newAmount, height, newLockDuration], nil)) | |
315 | 315 | let k = asInt(gWxParamsResultList[0]) | |
316 | 316 | let b = asInt(gWxParamsResultList[1]) | |
317 | 317 | let period = toString(asInt(gWxParamsResultList[2])) | |
318 | 318 | ((LockParamsEntry(userAddressStr, userNumStr, newAmount, lockStart, newLockDuration, k, b, period) ++ StatsEntry(pmtAmount, deltaDuration, 0, 0)) :+ HistoryEntry("lock", userAddressStr, pmtAmount, lockStart, newLockDuration, k, b, i)) | |
319 | 319 | } | |
320 | 320 | } | |
321 | 321 | ||
322 | 322 | ||
323 | 323 | ||
324 | 324 | @Callable(i) | |
325 | 325 | func unlock (userAddress) = { | |
326 | 326 | let userRecordArray = readLockParamsRecordOrFail(userAddress) | |
327 | 327 | let userNumStr = userRecordArray[IdxLockUserNum] | |
328 | 328 | let userAmount = parseIntValue(userRecordArray[IdxLockAmount]) | |
329 | 329 | let lockStart = parseIntValue(userRecordArray[IdxLockStart]) | |
330 | 330 | let lockDuration = parseIntValue(userRecordArray[IdxLockDuration]) | |
331 | 331 | let lockEnd = (lockStart + lockDuration) | |
332 | 332 | let cfgArray = readConfigArrayOrFail() | |
333 | 333 | let assetId = fromBase58String(cfgArray[IdxCfgAssetId]) | |
334 | 334 | if ((lockEnd >= height)) | |
335 | 335 | then throw((("wait " + toString(lockEnd)) + " to unlock")) | |
336 | 336 | else if ((0 >= userAmount)) | |
337 | 337 | then throw("nothing to unlock") | |
338 | 338 | else { | |
339 | 339 | let period = "0" | |
340 | 340 | (((LockParamsEntry(userAddress, userNumStr, 0, lockStart, lockDuration, 0, 0, period) ++ StatsEntry(-(userAmount), 0, 0, -1)) :+ HistoryEntry("unlock", userAddress, userAmount, lockStart, lockDuration, 0, 0, i)) :+ ScriptTransfer(addressFromStringValue(userAddress), userAmount, assetId)) | |
341 | 341 | } | |
342 | 342 | } | |
343 | 343 | ||
344 | 344 | ||
345 | 345 | ||
346 | 346 | @Callable(i) | |
347 | 347 | func gwxUserInfoREADONLY (userAddress) = { | |
348 | 348 | let EMPTY = "empty" | |
349 | 349 | let user2NumMappingKEY = keyUser2NumMapping(userAddress) | |
350 | 350 | let userNum = valueOrElse(getString(user2NumMappingKEY), EMPTY) | |
351 | 351 | let k = valueOrElse(getInteger(keyLockParamK(userNum)), 0) | |
352 | 352 | let b = valueOrElse(getInteger(keyLockParamB(userNum)), 0) | |
353 | 353 | let gwxAmountCalc = calcGwxAmount(k, b, height) | |
354 | 354 | let gwxAmount = if ((0 > gwxAmountCalc)) | |
355 | 355 | then 0 | |
356 | 356 | else gwxAmountCalc | |
357 | 357 | $Tuple2(nil, [gwxAmount]) | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 |
github/deemru/w8io/169f3d6 54.83 ms ◑