tx · FcTWp4WzTCLigzVMZSH4PvkNe1HfREUgqRqna38yowBC 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.01600000 Waves 2024.11.17 18:23 [3375628] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "FcTWp4WzTCLigzVMZSH4PvkNe1HfREUgqRqna38yowBC", "fee": 1600000, "feeAssetId": null, "timestamp": 1731857029750, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "21RKBXfL8gQXw3jVXhAs183WaZ7GUAAg6PiGMyvCcY97yM1oHho2LAa7nABnf7QMbD5SAqjTUgzpdJ1YWmrL64sr" ], "script": "base64:BgI3CAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIATkAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAKREFZX01JTExJUwCAuJkpABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgATT05FX1BFUkNFTlRfRElWSVNPUgBkAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQFByRtYXRjaDABIFWx2J9yh4Lv5eNbjawFq2XemkOhLxa7BfMat4el8cUYCQACAQINVW5rbm93biBjaGFpbgAWZGVmYXVsdFJlc3QyQWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BGd1l0YThiaUV6MzF6cGVGZTVESks4d0U1dHJTcFFWRjgDCQAAAgEBVAUHJG1hdGNo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RzAAAGYW1vdW50BQRhZGRyAWkBGnNpbXVsYXRlU3Rha2VBY3Jlc1JFQURPTkxZAgdhZGRyZXNzC2FkZGVkQW1vdW50BAlhbW91bnRLZXkJARdrZXlBY3Jlc1N0YWtlZEFtdEJ5VXNlcgEFB2FkZHJlc3MEDm5ld0FjcmVzQW1vdW50CQBkAgkBC3ZhbHVlT3JFbHNlAgkAnwgBBQlhbW91bnRLZXkAAAULYWRkZWRBbW91bnQECG9sZFRvdGFsCQELdmFsdWVPckVsc2UCCQCfCAEFEmFjcmVzU3Rha2RUb3RhbEtleQAABAl1c2VyRnBLZXkJARVrZXlGYXJtaW5nUG93ZXJCeVVzZXIBBQdhZGRyZXNzBAVvbGRGcAkBC3ZhbHVlT3JFbHNlAgkAnwgBBQl1c2VyRnBLZXkAAAQFbmV3RnAJARZnZXRGYXJtaW5nUG93ZXJCeUFjcmVzAQUObmV3QWNyZXNBbW91bnQECm9sZFRvdGFsRnAJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUUdG90YWxGYXJtaW5nUG93ZXJLZXkAAAQKbmV3VG90YWxGcAkAZAIJAGUCBQpvbGRUb3RhbEZwBQVvbGRGcAUFbmV3RnAJAJQKAgUDbmlsCQDMCAIFBW9sZEZwCQDMCAIFBW5ld0ZwCQDMCAIFCm9sZFRvdGFsRnAJAMwIAgUKbmV3VG90YWxGcAUDbmlsAA5DGwY=", "height": 3375628, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2xcrEprGkH6o3eoKGURZMJMmLxiW8yKd3rG3CRWyvBe8 Next: b9pot6JkR7Qxo98BvwKAy32KiVhCG3eC6i34CPByJuF Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
33 | 33 | else if ((base58'2T' == $match0)) | |
34 | 34 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
35 | + | else throw("Unknown chain") | |
36 | + | } | |
37 | + | ||
38 | + | let arbitrageDelay = match chain { | |
39 | + | case _ => | |
40 | + | if ((base58'2W' == $match0)) | |
41 | + | then DAY_MILLIS | |
42 | + | else if ((base58'2T' == $match0)) | |
43 | + | then 60000 | |
35 | 44 | else throw("Unknown chain") | |
36 | 45 | } | |
37 | 46 | ||
188 | 197 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
189 | 198 | ||
190 | 199 | ||
200 | + | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
201 | + | ||
202 | + | ||
191 | 203 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
192 | 204 | then valueOrElse(getBoolean(keyBlocked()), false) | |
193 | 205 | else false) | |
235 | 247 | ||
236 | 248 | let keyLastLimitLeft = "lastLimitLeft" | |
237 | 249 | ||
238 | - | let keyLastSavedTVL = "lastSavedTVL" | |
239 | - | ||
240 | 250 | func getSwapLimitAcres () = { | |
241 | 251 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
242 | 252 | let acres2Usd = assetBalance(this, usdtAssetId) | |
243 | 253 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
244 | - | let currTVL = ((acres2Usd + wlgUsd) + investFundTotal) | |
245 | - | let defaultLimit = (currTVL / ONE_PERCENT_DIVISOR) | |
254 | + | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
246 | 255 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
247 | - | let lastSavedTVL = valueOrElse(getInteger(keyLastSavedTVL), currTVL) | |
248 | 256 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
249 | 257 | let now = lastBlock.timestamp | |
250 | - | let currentLimit = (lastLimitLeft + fraction( | |
258 | + | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
251 | 259 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
252 | - | $Tuple2( | |
260 | + | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
253 | 261 | } | |
254 | 262 | ||
255 | 263 | ||
287 | 295 | if ((size(i.payments) != 0)) | |
288 | 296 | then throw("No payments required") | |
289 | 297 | else { | |
290 | - | let $t047464823 = stakeUnstakeAcresInternal(-(amount), address) | |
291 | - | let actions = $t047464823._1 | |
292 | - | let wlgClaimedAmount = $t047464823._2 | |
293 | - | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
298 | + | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
299 | + | if ((arbReleaseTime > lastBlock.timestamp)) | |
300 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
301 | + | else { | |
302 | + | let $t047564833 = stakeUnstakeAcresInternal(-(amount), address) | |
303 | + | let actions = $t047564833._1 | |
304 | + | let wlgClaimedAmount = $t047564833._2 | |
305 | + | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
306 | + | } | |
294 | 307 | } | |
295 | 308 | } | |
296 | 309 | } | |
311 | 324 | else (value(pmt.assetId) != acresAssetId)) | |
312 | 325 | then throw("ACRES payments only!") | |
313 | 326 | else { | |
314 | - | let $ | |
315 | - | let actions = $ | |
316 | - | let wlgClaimedAmount = $ | |
327 | + | let $t052845357 = stakeUnstakeAcresInternal(amt, address) | |
328 | + | let actions = $t052845357._1 | |
329 | + | let wlgClaimedAmount = $t052845357._2 | |
317 | 330 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
318 | 331 | } | |
319 | 332 | } | |
377 | 390 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
378 | 391 | else { | |
379 | 392 | let addr = toString(i.caller) | |
380 | - | let $ | |
381 | - | let | |
382 | - | let maxUsdt = $ | |
393 | + | let $t072147262 = getSwapLimitAcres() | |
394 | + | let limitAction = $t072147262._1 | |
395 | + | let maxUsdt = $t072147262._2 | |
383 | 396 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
384 | 397 | if ((acresAmount > maxAcres)) | |
385 | 398 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
386 | 399 | else { | |
387 | 400 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
388 | - | $Tuple2(( | |
401 | + | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
389 | 402 | } | |
390 | 403 | } | |
391 | 404 | } | |
395 | 408 | ||
396 | 409 | @Callable(i) | |
397 | 410 | func sellAcresREADONLY (address,acresAmount) = { | |
398 | - | let $ | |
399 | - | let | |
400 | - | let maxUsdt = $ | |
411 | + | let $t077587806 = getSwapLimitAcres() | |
412 | + | let limitAction = $t077587806._1 | |
413 | + | let maxUsdt = $t077587806._2 | |
401 | 414 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
402 | 415 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
403 | 416 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT7 = 10000000 | |
9 | 9 | ||
10 | 10 | let MULT8 = 100000000 | |
11 | 11 | ||
12 | 12 | let DAY_MILLIS = 86400000 | |
13 | 13 | ||
14 | 14 | let USDT2ACRES_MULTIPLIER = 10 | |
15 | 15 | ||
16 | 16 | let ONE_PERCENT_DIVISOR = 100 | |
17 | 17 | ||
18 | 18 | let chain = take(drop(this.bytes, 1), 1) | |
19 | 19 | ||
20 | 20 | let usdtAssetId = match chain { | |
21 | 21 | case _ => | |
22 | 22 | if ((base58'2W' == $match0)) | |
23 | 23 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
24 | 24 | else if ((base58'2T' == $match0)) | |
25 | 25 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
26 | 26 | else throw("Unknown chain") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | let defaultRest2AddressStr = match chain { | |
30 | 30 | case _ => | |
31 | 31 | if ((base58'2W' == $match0)) | |
32 | 32 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
33 | 33 | else if ((base58'2T' == $match0)) | |
34 | 34 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
35 | + | else throw("Unknown chain") | |
36 | + | } | |
37 | + | ||
38 | + | let arbitrageDelay = match chain { | |
39 | + | case _ => | |
40 | + | if ((base58'2W' == $match0)) | |
41 | + | then DAY_MILLIS | |
42 | + | else if ((base58'2T' == $match0)) | |
43 | + | then 60000 | |
35 | 44 | else throw("Unknown chain") | |
36 | 45 | } | |
37 | 46 | ||
38 | 47 | let oldStakingContractStr = match chain { | |
39 | 48 | case _ => | |
40 | 49 | if ((base58'2W' == $match0)) | |
41 | 50 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
42 | 51 | else if ((base58'2T' == $match0)) | |
43 | 52 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
44 | 53 | else throw("Unknown chain") | |
45 | 54 | } | |
46 | 55 | ||
47 | 56 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
48 | 57 | ||
49 | 58 | ||
50 | 59 | let IdxCfgAcres2Dapp = 1 | |
51 | 60 | ||
52 | 61 | let IdxCfgWlgDapp = 2 | |
53 | 62 | ||
54 | 63 | let IdxCfgInvestFundDapp = 5 | |
55 | 64 | ||
56 | 65 | func keyRestCfg () = "%s__restConfig" | |
57 | 66 | ||
58 | 67 | ||
59 | 68 | func keyRest2Address () = "%s__rest2Addr" | |
60 | 69 | ||
61 | 70 | ||
62 | 71 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
63 | 72 | ||
64 | 73 | ||
65 | 74 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
66 | 75 | ||
67 | 76 | ||
68 | 77 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
69 | 78 | ||
70 | 79 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
71 | 80 | ||
72 | 81 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
73 | 82 | ||
74 | 83 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
75 | 84 | ||
76 | 85 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
77 | 86 | ||
78 | 87 | let oldAcresContractKey = "oldAcresContract" | |
79 | 88 | ||
80 | 89 | func keyBlocked () = "contractsBlocked" | |
81 | 90 | ||
82 | 91 | ||
83 | 92 | func keyLastTxIdByUser (addr) = ("lastTxIdByUser_" + addr) | |
84 | 93 | ||
85 | 94 | ||
86 | 95 | let acresIssuedAmountKey = "acresIssuedAmount" | |
87 | 96 | ||
88 | 97 | let acresAssetIdKey = "acresAssetId" | |
89 | 98 | ||
90 | 99 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
91 | 100 | ||
92 | 101 | func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr) | |
93 | 102 | ||
94 | 103 | ||
95 | 104 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
96 | 105 | ||
97 | 106 | ||
98 | 107 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
99 | 108 | ||
100 | 109 | ||
101 | 110 | func asInt (v) = match v { | |
102 | 111 | case n: Int => | |
103 | 112 | n | |
104 | 113 | case _ => | |
105 | 114 | throw("fail to cast into Int") | |
106 | 115 | } | |
107 | 116 | ||
108 | 117 | ||
109 | 118 | func asTuple5Ints (val) = match val { | |
110 | 119 | case t: (Int, Int, Int, Int, Int) => | |
111 | 120 | t | |
112 | 121 | case _ => | |
113 | 122 | throw("fail to cast into (Int, Int, Int, Int, Int)") | |
114 | 123 | } | |
115 | 124 | ||
116 | 125 | ||
117 | 126 | func asTuple4Ints (val) = match val { | |
118 | 127 | case t: (Int, Int, Int, Int) => | |
119 | 128 | t | |
120 | 129 | case _ => | |
121 | 130 | throw("fail to cast into (Int, Int, Int, Int)") | |
122 | 131 | } | |
123 | 132 | ||
124 | 133 | ||
125 | 134 | func asTuple3Ints (val) = match val { | |
126 | 135 | case t: (Int, Int, Int) => | |
127 | 136 | t | |
128 | 137 | case _ => | |
129 | 138 | throw("fail to cast into (Int, Int, Int)") | |
130 | 139 | } | |
131 | 140 | ||
132 | 141 | ||
133 | 142 | func asTuple2Ints (val) = match val { | |
134 | 143 | case t: (Int, Int) => | |
135 | 144 | t | |
136 | 145 | case _ => | |
137 | 146 | throw("fail to cast into (Int, Int)") | |
138 | 147 | } | |
139 | 148 | ||
140 | 149 | ||
141 | 150 | func fixedPoint (val,decimals) = { | |
142 | 151 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
143 | 152 | let lowPart = toString((val % tenPow)) | |
144 | 153 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
145 | 154 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
146 | 155 | } | |
147 | 156 | ||
148 | 157 | ||
149 | 158 | let M8_ = 100000000 | |
150 | 159 | ||
151 | 160 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
152 | 161 | ||
153 | 162 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
154 | 163 | ||
155 | 164 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
156 | 165 | ||
157 | 166 | ||
158 | 167 | func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr) | |
159 | 168 | ||
160 | 169 | ||
161 | 170 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
162 | 171 | ||
163 | 172 | let totalFarmingPowerKey = "totalFarmingPower" | |
164 | 173 | ||
165 | 174 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
166 | 175 | ||
167 | 176 | func getLevelByAcres (acres) = { | |
168 | 177 | let acr = ((acres + 99999999) / M8_) | |
169 | 178 | func checker (acc,item) = if ((item >= acr)) | |
170 | 179 | then acc | |
171 | 180 | else (acc + 1) | |
172 | 181 | ||
173 | 182 | let $l = levelAcres | |
174 | 183 | let $s = size($l) | |
175 | 184 | let $acc0 = 0 | |
176 | 185 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
177 | 186 | then $a | |
178 | 187 | else checker($a, $l[$i]) | |
179 | 188 | ||
180 | 189 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
181 | 190 | then $a | |
182 | 191 | else throw("List size exceeds 10") | |
183 | 192 | ||
184 | 193 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
185 | 194 | } | |
186 | 195 | ||
187 | 196 | ||
188 | 197 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
189 | 198 | ||
190 | 199 | ||
200 | + | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
201 | + | ||
202 | + | ||
191 | 203 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
192 | 204 | then valueOrElse(getBoolean(keyBlocked()), false) | |
193 | 205 | else false) | |
194 | 206 | then throw("Contracts are under maintenance") | |
195 | 207 | else [StringEntry(keyLastTxIdByUser(toString(i.originCaller)), toBase58String(i.transactionId))] | |
196 | 208 | ||
197 | 209 | ||
198 | 210 | func stakeUnstakeAcresInternal (amt,address) = { | |
199 | 211 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
200 | 212 | if ((wlgResult == wlgResult)) | |
201 | 213 | then { | |
202 | 214 | let now = lastBlock.timestamp | |
203 | 215 | let timeKey = keyAcresStakedTimeByUser(address) | |
204 | 216 | let amountKey = keyAcresStakedAmtByUser(address) | |
205 | 217 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
206 | 218 | if (if ((0 > amt)) | |
207 | 219 | then (0 > (oldAcresAmount + amt)) | |
208 | 220 | else false) | |
209 | 221 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
210 | 222 | else { | |
211 | 223 | let newAcresAmount = (oldAcresAmount + amt) | |
212 | 224 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
213 | 225 | let userFpKey = keyFarmingPowerByUser(address) | |
214 | 226 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
215 | 227 | let newFp = getFarmingPowerByAcres(newAcresAmount) | |
216 | 228 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
217 | 229 | $Tuple2([IntegerEntry(timeKey, lastBlock.timestamp), IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt)), IntegerEntry(userFpKey, newFp), IntegerEntry(totalFarmingPowerKey, ((oldTotalFp - oldFp) + newFp))], wlgResult) | |
218 | 230 | } | |
219 | 231 | } | |
220 | 232 | else throw("Strict value is not equal to itself.") | |
221 | 233 | } | |
222 | 234 | ||
223 | 235 | ||
224 | 236 | func getWlgPrice (usdtBalanceCorrection) = { | |
225 | 237 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
226 | 238 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
227 | 239 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
228 | 240 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
229 | 241 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
230 | 242 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
231 | 243 | } | |
232 | 244 | ||
233 | 245 | ||
234 | 246 | let keyLastAcresSellTime = "lastAcresSellTime" | |
235 | 247 | ||
236 | 248 | let keyLastLimitLeft = "lastLimitLeft" | |
237 | 249 | ||
238 | - | let keyLastSavedTVL = "lastSavedTVL" | |
239 | - | ||
240 | 250 | func getSwapLimitAcres () = { | |
241 | 251 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
242 | 252 | let acres2Usd = assetBalance(this, usdtAssetId) | |
243 | 253 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
244 | - | let currTVL = ((acres2Usd + wlgUsd) + investFundTotal) | |
245 | - | let defaultLimit = (currTVL / ONE_PERCENT_DIVISOR) | |
254 | + | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
246 | 255 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
247 | - | let lastSavedTVL = valueOrElse(getInteger(keyLastSavedTVL), currTVL) | |
248 | 256 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
249 | 257 | let now = lastBlock.timestamp | |
250 | - | let currentLimit = (lastLimitLeft + fraction( | |
258 | + | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
251 | 259 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
252 | - | $Tuple2( | |
260 | + | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
253 | 261 | } | |
254 | 262 | ||
255 | 263 | ||
256 | 264 | @Callable(i) | |
257 | 265 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
258 | 266 | then throw("Access denied") | |
259 | 267 | else $Tuple2(prolog(i), 42) | |
260 | 268 | ||
261 | 269 | ||
262 | 270 | ||
263 | 271 | @Callable(i) | |
264 | 272 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
265 | 273 | then throw("Permission denied") | |
266 | 274 | else { | |
267 | 275 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
268 | 276 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
269 | 277 | } | |
270 | 278 | ||
271 | 279 | ||
272 | 280 | ||
273 | 281 | @Callable(i) | |
274 | 282 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
275 | 283 | then throw("permission denied") | |
276 | 284 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
277 | 285 | ||
278 | 286 | ||
279 | 287 | ||
280 | 288 | @Callable(i) | |
281 | 289 | func unstakeAcres (amount) = { | |
282 | 290 | let prologActions = prolog(i) | |
283 | 291 | if ((0 >= amount)) | |
284 | 292 | then throw("Amount should be positive") | |
285 | 293 | else { | |
286 | 294 | let address = toString(i.caller) | |
287 | 295 | if ((size(i.payments) != 0)) | |
288 | 296 | then throw("No payments required") | |
289 | 297 | else { | |
290 | - | let $t047464823 = stakeUnstakeAcresInternal(-(amount), address) | |
291 | - | let actions = $t047464823._1 | |
292 | - | let wlgClaimedAmount = $t047464823._2 | |
293 | - | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
298 | + | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
299 | + | if ((arbReleaseTime > lastBlock.timestamp)) | |
300 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
301 | + | else { | |
302 | + | let $t047564833 = stakeUnstakeAcresInternal(-(amount), address) | |
303 | + | let actions = $t047564833._1 | |
304 | + | let wlgClaimedAmount = $t047564833._2 | |
305 | + | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
306 | + | } | |
294 | 307 | } | |
295 | 308 | } | |
296 | 309 | } | |
297 | 310 | ||
298 | 311 | ||
299 | 312 | ||
300 | 313 | @Callable(i) | |
301 | 314 | func stakeAcres () = { | |
302 | 315 | let prologActions = prolog(i) | |
303 | 316 | let address = toString(i.caller) | |
304 | 317 | if ((size(i.payments) != 1)) | |
305 | 318 | then throw("exactly 1 payment must be attached") | |
306 | 319 | else { | |
307 | 320 | let pmt = i.payments[0] | |
308 | 321 | let amt = pmt.amount | |
309 | 322 | if (if (!(isDefined(pmt.assetId))) | |
310 | 323 | then true | |
311 | 324 | else (value(pmt.assetId) != acresAssetId)) | |
312 | 325 | then throw("ACRES payments only!") | |
313 | 326 | else { | |
314 | - | let $ | |
315 | - | let actions = $ | |
316 | - | let wlgClaimedAmount = $ | |
327 | + | let $t052845357 = stakeUnstakeAcresInternal(amt, address) | |
328 | + | let actions = $t052845357._1 | |
329 | + | let wlgClaimedAmount = $t052845357._2 | |
317 | 330 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
318 | 331 | } | |
319 | 332 | } | |
320 | 333 | } | |
321 | 334 | ||
322 | 335 | ||
323 | 336 | ||
324 | 337 | @Callable(i) | |
325 | 338 | func buyAcres () = { | |
326 | 339 | let prologActions = prolog(i) | |
327 | 340 | if ((size(i.payments) != 1)) | |
328 | 341 | then throw("exactly 1 payment must be attached") | |
329 | 342 | else { | |
330 | 343 | let pmt = i.payments[0] | |
331 | 344 | let usdtAmount = pmt.amount | |
332 | 345 | if (if (!(isDefined(pmt.assetId))) | |
333 | 346 | then true | |
334 | 347 | else (value(pmt.assetId) != usdtAssetId)) | |
335 | 348 | then throw("USDT payments only!") | |
336 | 349 | else if ((MULT6 > usdtAmount)) | |
337 | 350 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
338 | 351 | else { | |
339 | 352 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
340 | 353 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
341 | 354 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
342 | 355 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
343 | 356 | if ((req == req)) | |
344 | 357 | then { | |
345 | 358 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
346 | 359 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
347 | 360 | } | |
348 | 361 | else throw("Strict value is not equal to itself.") | |
349 | 362 | } | |
350 | 363 | } | |
351 | 364 | } | |
352 | 365 | ||
353 | 366 | ||
354 | 367 | ||
355 | 368 | @Callable(i) | |
356 | 369 | func buyAcresREADONLY (usdtAmount) = { | |
357 | 370 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
358 | 371 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
359 | 372 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
360 | 373 | } | |
361 | 374 | ||
362 | 375 | ||
363 | 376 | ||
364 | 377 | @Callable(i) | |
365 | 378 | func sellAcres () = { | |
366 | 379 | let prologActions = prolog(i) | |
367 | 380 | if ((size(i.payments) != 1)) | |
368 | 381 | then throw("exactly 1 payment must be attached") | |
369 | 382 | else { | |
370 | 383 | let pmt = i.payments[0] | |
371 | 384 | let acresAmount = pmt.amount | |
372 | 385 | if (if (!(isDefined(pmt.assetId))) | |
373 | 386 | then true | |
374 | 387 | else (value(pmt.assetId) != acresAssetId)) | |
375 | 388 | then throw("ACRES payments only!") | |
376 | 389 | else if ((MULT7 > acresAmount)) | |
377 | 390 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
378 | 391 | else { | |
379 | 392 | let addr = toString(i.caller) | |
380 | - | let $ | |
381 | - | let | |
382 | - | let maxUsdt = $ | |
393 | + | let $t072147262 = getSwapLimitAcres() | |
394 | + | let limitAction = $t072147262._1 | |
395 | + | let maxUsdt = $t072147262._2 | |
383 | 396 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
384 | 397 | if ((acresAmount > maxAcres)) | |
385 | 398 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
386 | 399 | else { | |
387 | 400 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
388 | - | $Tuple2(( | |
401 | + | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
389 | 402 | } | |
390 | 403 | } | |
391 | 404 | } | |
392 | 405 | } | |
393 | 406 | ||
394 | 407 | ||
395 | 408 | ||
396 | 409 | @Callable(i) | |
397 | 410 | func sellAcresREADONLY (address,acresAmount) = { | |
398 | - | let $ | |
399 | - | let | |
400 | - | let maxUsdt = $ | |
411 | + | let $t077587806 = getSwapLimitAcres() | |
412 | + | let limitAction = $t077587806._1 | |
413 | + | let maxUsdt = $t077587806._2 | |
401 | 414 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
402 | 415 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
403 | 416 | } | |
404 | 417 | ||
405 | 418 | ||
406 | 419 | ||
407 | 420 | @Callable(i) | |
408 | 421 | func convertOldStakes () = if ((i.caller != this)) | |
409 | 422 | then throw("Temporarily disabled") | |
410 | 423 | else { | |
411 | 424 | let address = toString(i.caller) | |
412 | 425 | if ((size(i.payments) != 0)) | |
413 | 426 | then throw("No payments required") | |
414 | 427 | else { | |
415 | 428 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
416 | 429 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
417 | 430 | let gotAcres0 = if ((amount > 0)) | |
418 | 431 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
419 | 432 | else $Tuple2(0, 0) | |
420 | 433 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
421 | 434 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
422 | 435 | let landsResult = if (isDefined(landsStr)) | |
423 | 436 | then { | |
424 | 437 | let lands = split_51C(value(landsStr), "_") | |
425 | 438 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
426 | 439 | then throw("landAssetId is required") | |
427 | 440 | else { | |
428 | 441 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
429 | 442 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
430 | 443 | } | |
431 | 444 | ||
432 | 445 | let rr = { | |
433 | 446 | let $l = lands | |
434 | 447 | let $s = size($l) | |
435 | 448 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
436 | 449 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
437 | 450 | then $a | |
438 | 451 | else oneLand($a, $l[$i]) | |
439 | 452 | ||
440 | 453 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
441 | 454 | then $a | |
442 | 455 | else throw("List size exceeds 100") | |
443 | 456 | ||
444 | 457 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
445 | 458 | } | |
446 | 459 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
447 | 460 | if ((finalize == finalize)) | |
448 | 461 | then { | |
449 | 462 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
450 | 463 | if ((req == req)) | |
451 | 464 | then { | |
452 | 465 | let issue = Issue("FPOWER10", "FarmingPower +10% NFT for WavesLands game", 1, 0, false) | |
453 | 466 | $Tuple5(rr._1, rr._2, rr._3, rr._4, [issue, ScriptTransfer(i.caller, 1, calculateAssetId(issue))]) | |
454 | 467 | } | |
455 | 468 | else throw("Strict value is not equal to itself.") | |
456 | 469 | } | |
457 | 470 | else throw("Strict value is not equal to itself.") | |
458 | 471 | } | |
459 | 472 | else $Tuple5(0, 0, 0, 0, nil) | |
460 | 473 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
461 | 474 | let duckResult = if ((duckAssetId != "")) | |
462 | 475 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
463 | 476 | else $Tuple3(0, 0, 0) | |
464 | 477 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address) | |
465 | 478 | $Tuple2((landsResult._5 ++ x._1), x._2) | |
466 | 479 | } | |
467 | 480 | } | |
468 | 481 | ||
469 | 482 | ||
470 | 483 | ||
471 | 484 | @Callable(i) | |
472 | 485 | func unstakeLandsREADONLY (address) = { | |
473 | 486 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
474 | 487 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
475 | 488 | let landsResult = if (isDefined(landsStr)) | |
476 | 489 | then { | |
477 | 490 | let lands = split_51C(value(landsStr), "_") | |
478 | 491 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
479 | 492 | then throw("landAssetId is required") | |
480 | 493 | else { | |
481 | 494 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
482 | 495 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
483 | 496 | } | |
484 | 497 | ||
485 | 498 | let $l = lands | |
486 | 499 | let $s = size($l) | |
487 | 500 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
488 | 501 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
489 | 502 | then $a | |
490 | 503 | else oneLand($a, $l[$i]) | |
491 | 504 | ||
492 | 505 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
493 | 506 | then $a | |
494 | 507 | else throw("List size exceeds 100") | |
495 | 508 | ||
496 | 509 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
497 | 510 | } | |
498 | 511 | else $Tuple4(0, 0, 0, 0) | |
499 | 512 | $Tuple2(nil, landsResult) | |
500 | 513 | } | |
501 | 514 | ||
502 | 515 | ||
503 | 516 | ||
504 | 517 | @Callable(i) | |
505 | 518 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
506 | 519 | then throw("Permission denied") | |
507 | 520 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr) | |
508 | 521 | ||
509 | 522 | ||
510 | 523 | ||
511 | 524 | @Callable(i) | |
512 | 525 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
513 | 526 | let amountKey = keyAcresStakedAmtByUser(address) | |
514 | 527 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
515 | 528 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
516 | 529 | let userFpKey = keyFarmingPowerByUser(address) | |
517 | 530 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
518 | 531 | let newFp = getFarmingPowerByAcres(newAcresAmount) | |
519 | 532 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
520 | 533 | let newTotalFp = ((oldTotalFp - oldFp) + newFp) | |
521 | 534 | $Tuple2(nil, [oldFp, newFp, oldTotalFp, newTotalFp]) | |
522 | 535 | } | |
523 | 536 | ||
524 | 537 |
github/deemru/w8io/026f985 74.61 ms ◑