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