tx · 88a7etqjeSGTwfAYdoJDuqJsrGxzQYX1E3BUNubzbE1c 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.02700000 Waves 2024.11.26 22:47 [3388826] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "88a7etqjeSGTwfAYdoJDuqJsrGxzQYX1E3BUNubzbE1c", "fee": 2700000, "feeAssetId": null, "timestamp": 1732650397629, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "5RKVxuKZrvNjXKFrrEHrEExFMD6WYNazqW1eQCUY5bvevU7bHg4EbjxFqP4jJktEsJjYwJPXrqhZcGxbMNG7YPKB" ], "script": "base64:BgJGCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIECgIIARIAEgMKAQgSAFwAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAKREFZX01JTExJUwCAuJkpABVVU0RUMkFDUkVTX01VTFRJUExJRVIACgATT05FX1BFUkNFTlRfRElWSVNPUgBkAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQALV0VFS19CTE9DS1MEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAA4E4DCQAAAgEBVAUHJG1hdGNoMAC0AQkAAgECDVVua25vd24gY2hhaW4AC3VzZHRBc3NldElkBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwASCE2nqyCAM/TtG7yo7ui5O8yYLdC136B5ao1CP5qA//uQMJAAACAQFUBQckbWF0Y2gwASBVsdifcoeC7+XjW42sBatl3ppDoS8WuwXzGreHpfHFGAkAAgECDVVua25vd24gY2hhaW4AFmRlZmF1bH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KbmZ0QXNzZXRJZAUKbmZ0QXNzZXRJZADIHipm", "height": 3388826, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4MKEc2fnEqbc7CMUKJ8nD55xbgA4f6ibjxY96i7FPHEQ Next: 3eBv7G3dZH3x5CCrig5BdUvVBSBWAX6YLpDWb1H9tHEf Diff:
Old | New | Differences | |
---|---|---|---|
872 | 872 | else if ((totalBonus == 10)) | |
873 | 873 | then 4 | |
874 | 874 | else throw("Only bonuses of 3%, 5% or 10% are supported") | |
875 | - | let change = ((totalBonus * MULT6) | |
875 | + | let change = (usdtFee - (totalBonus * MULT6)) | |
876 | 876 | if ((0 > change)) | |
877 | - | then throw((("You need to attach " + | |
877 | + | then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee")) | |
878 | 878 | else { | |
879 | 879 | let changeActions = if ((change > 0)) | |
880 | 880 | then [ScriptTransfer(i.caller, change, usdtAssetId)] | |
881 | 881 | else nil | |
882 | - | let $ | |
883 | - | let issueNftActions = $ | |
884 | - | let nftAssetId = $ | |
882 | + | let $t02531125383 = issueNFTinternal(nftIndex, i.caller) | |
883 | + | let issueNftActions = $t02531125383._1 | |
884 | + | let nftAssetId = $t02531125383._2 | |
885 | 885 | let burned = size(burnActions) | |
886 | 886 | let burnCounterActions = if ((burned == 0)) | |
887 | 887 | then nil |
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 WEEK_BLOCKS = match chain { | |
21 | 21 | case _ => | |
22 | 22 | if ((base58'2W' == $match0)) | |
23 | 23 | then 10080 | |
24 | 24 | else if ((base58'2T' == $match0)) | |
25 | 25 | then 180 | |
26 | 26 | else throw("Unknown chain") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | let usdtAssetId = match chain { | |
30 | 30 | case _ => | |
31 | 31 | if ((base58'2W' == $match0)) | |
32 | 32 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
33 | 33 | else if ((base58'2T' == $match0)) | |
34 | 34 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
35 | 35 | else throw("Unknown chain") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | let defaultRest2AddressStr = match chain { | |
39 | 39 | case _ => | |
40 | 40 | if ((base58'2W' == $match0)) | |
41 | 41 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
42 | 42 | else if ((base58'2T' == $match0)) | |
43 | 43 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
44 | 44 | else throw("Unknown chain") | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | let arbitrageDelay = match chain { | |
48 | 48 | case _ => | |
49 | 49 | if ((base58'2W' == $match0)) | |
50 | 50 | then DAY_MILLIS | |
51 | 51 | else if ((base58'2T' == $match0)) | |
52 | 52 | then 60000 | |
53 | 53 | else throw("Unknown chain") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | let oldStakingContractStr = match chain { | |
57 | 57 | case _ => | |
58 | 58 | if ((base58'2W' == $match0)) | |
59 | 59 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
60 | 60 | else if ((base58'2T' == $match0)) | |
61 | 61 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
62 | 62 | else throw("Unknown chain") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | let IdxCfgAcres2Dapp = 1 | |
69 | 69 | ||
70 | 70 | let IdxCfgWlgDapp = 2 | |
71 | 71 | ||
72 | 72 | let IdxCfgInvestFundDapp = 5 | |
73 | 73 | ||
74 | 74 | func keyRestCfg () = "%s__restConfig" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyRest2Address () = "%s__rest2Addr" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
87 | 87 | ||
88 | 88 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
89 | 89 | ||
90 | 90 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
91 | 91 | ||
92 | 92 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
93 | 93 | ||
94 | 94 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
95 | 95 | ||
96 | 96 | let oldAcresContractKey = "oldAcresContract" | |
97 | 97 | ||
98 | 98 | func keyBlocked () = "contractsBlocked" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let acresIssuedAmountKey = "acresIssuedAmount" | |
108 | 108 | ||
109 | 109 | let acresAssetIdKey = "acresAssetId" | |
110 | 110 | ||
111 | 111 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
112 | 112 | ||
113 | 113 | func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func asInt (v) = match v { | |
129 | 129 | case n: Int => | |
130 | 130 | n | |
131 | 131 | case _ => | |
132 | 132 | throw("fail to cast into Int") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func asTuple5Ints (val) = match val { | |
137 | 137 | case t: (Int, Int, Int, Int, Int) => | |
138 | 138 | t | |
139 | 139 | case _ => | |
140 | 140 | throw("fail to cast into (Int, Int, Int, Int, Int)") | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func asTuple4Ints (val) = match val { | |
145 | 145 | case t: (Int, Int, Int, Int) => | |
146 | 146 | t | |
147 | 147 | case _ => | |
148 | 148 | throw("fail to cast into (Int, Int, Int, Int)") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func asTuple3Ints (val) = match val { | |
153 | 153 | case t: (Int, Int, Int) => | |
154 | 154 | t | |
155 | 155 | case _ => | |
156 | 156 | throw("fail to cast into (Int, Int, Int)") | |
157 | 157 | } | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func asTuple2Ints (val) = match val { | |
161 | 161 | case t: (Int, Int) => | |
162 | 162 | t | |
163 | 163 | case _ => | |
164 | 164 | throw("fail to cast into (Int, Int)") | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func fixedPoint (val,decimals) = { | |
169 | 169 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
170 | 170 | let lowPart = toString((val % tenPow)) | |
171 | 171 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
172 | 172 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | let M6_ = 1000000 | |
177 | 177 | ||
178 | 178 | let M8_ = 100000000 | |
179 | 179 | ||
180 | 180 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
181 | 181 | ||
182 | 182 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
183 | 183 | ||
184 | 184 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
191 | 191 | ||
192 | 192 | let totalFarmingPowerKey = "totalFarmingPower" | |
193 | 193 | ||
194 | 194 | let IdxDtx3PercConversion = 0 | |
195 | 195 | ||
196 | 196 | let MAX_WL_NFTS = 3 | |
197 | 197 | ||
198 | 198 | let MAX_ARK_NFTS = 1 | |
199 | 199 | ||
200 | 200 | let ARK_NFT_BONUS = 5000 | |
201 | 201 | ||
202 | 202 | let MAX_NFTS_STAKED_BY_USER = 4 | |
203 | 203 | ||
204 | 204 | let keyNftTotalIssued = "nftTotalIssued" | |
205 | 205 | ||
206 | 206 | let keyNftTotalBurned = "nftTotalBurned" | |
207 | 207 | ||
208 | 208 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
209 | 209 | ||
210 | 210 | func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
223 | 223 | ||
224 | 224 | func getLevelByAcres (acres) = { | |
225 | 225 | let acr = ((acres + 99999999) / M8_) | |
226 | 226 | func checker (acc,item) = if ((item >= acr)) | |
227 | 227 | then acc | |
228 | 228 | else (acc + 1) | |
229 | 229 | ||
230 | 230 | let $l = levelAcres | |
231 | 231 | let $s = size($l) | |
232 | 232 | let $acc0 = 0 | |
233 | 233 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
234 | 234 | then $a | |
235 | 235 | else checker($a, $l[$i]) | |
236 | 236 | ||
237 | 237 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
238 | 238 | then $a | |
239 | 239 | else throw("List size exceeds 10") | |
240 | 240 | ||
241 | 241 | $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) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
249 | 249 | let notBonused = getFarmingPowerByAcres(acres) | |
250 | 250 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | let keyLastAcresSellTime = "lastAcresSellTime" | |
258 | 258 | ||
259 | 259 | let keyLastLimitLeft = "lastLimitLeft" | |
260 | 260 | ||
261 | 261 | let nftDescriptions = [", \"collection\": \"Digging tools\", \"name\": \"Gold shovel\", \"description\": \"Reward for early birds\", \"rare\": \"Promo\", \"bonus\": 3, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 1, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 3, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 5, \"bonusType\": \"FarmPower\"}", ", \"collection\": \"Digging tools\", \"name\": \"Pickaxe\", \"description\": \"Increases FarmPower\", \"rare\": \"Common\", \"bonus\": 10, \"bonusType\": \"FarmPower\"}"] | |
262 | 262 | ||
263 | 263 | let nftNames = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"] | |
264 | 264 | ||
265 | 265 | let contentKeys = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"] | |
266 | 266 | ||
267 | 267 | let URL = "\"url\": \"https://waveslands.com\", " | |
268 | 268 | ||
269 | 269 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
270 | 270 | then valueOrElse(getBoolean(keyBlocked()), false) | |
271 | 271 | else false) | |
272 | 272 | then throw("Contracts are under maintenance") | |
273 | 273 | else { | |
274 | 274 | let addr = toString(i.originCaller) | |
275 | 275 | let week = (height / WEEK_BLOCKS) | |
276 | 276 | let lastWeekTxIdByUser = getString(keyLastWeekTxIdByUser(addr)) | |
277 | 277 | let txId = toBase58String(i.transactionId) | |
278 | 278 | let wtx = ((toString(week) + "_") + txId) | |
279 | 279 | if (isDefined(lastWeekTxIdByUser)) | |
280 | 280 | then { | |
281 | 281 | let lastWeekTx = split(value(lastWeekTxIdByUser), "_") | |
282 | 282 | if ((lastWeekTx[0] == toString(week))) | |
283 | 283 | then [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)] | |
284 | 284 | else if ((lastWeekTx[0] == toString((week - 1)))) | |
285 | 285 | then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)] | |
286 | 286 | else { | |
287 | 287 | let curWeekTxIdByUser = getStringValue(keyLastWeekTxIdByUser(addr)) | |
288 | 288 | let curWeekTx = split(curWeekTxIdByUser, "_") | |
289 | 289 | if ((curWeekTx[0] == toString(week))) | |
290 | 290 | then [StringEntry(keyCurWeekTxIdByUser(addr), wtx)] | |
291 | 291 | else [StringEntry(keyLastWeekTxIdByUser(addr), curWeekTxIdByUser), StringEntry(keyCurWeekTxIdByUser(addr), wtx)] | |
292 | 292 | } | |
293 | 293 | } | |
294 | 294 | else [StringEntry(keyLastWeekTxIdByUser(addr), wtx), StringEntry(keyCurWeekTxIdByUser(addr), wtx)] | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func issueNFTinternal (nftIndex,addr) = if ((nftIndex >= size(contentKeys))) | |
299 | 299 | then throw("nftIndex out of bounds") | |
300 | 300 | else { | |
301 | 301 | let nftSerial = (valueOrElse(getInteger(keyNftTotalIssued), -1) + 1) | |
302 | 302 | let issue = Issue(nftNames[nftIndex], (((((("{" + URL) + "\"contentKey\": \"") + contentKeys[nftIndex]) + "\", \"number\": ") + toString(nftSerial)) + nftDescriptions[nftIndex]), 1, 0, false) | |
303 | 303 | let nftAssetId = calculateAssetId(issue) | |
304 | 304 | $Tuple2([issue, IntegerEntry(keyNftTotalIssued, nftSerial), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId) | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0)) | |
309 | 309 | then (bonusDelta == 0) | |
310 | 310 | else false) | |
311 | 311 | then throw("Nothing to do") | |
312 | 312 | else { | |
313 | 313 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
314 | 314 | if ((wlgResult == wlgResult)) | |
315 | 315 | then { | |
316 | 316 | let now = lastBlock.timestamp | |
317 | 317 | let timeKey = keyAcresStakedTimeByUser(address) | |
318 | 318 | let amountKey = keyAcresStakedAmtByUser(address) | |
319 | 319 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
320 | 320 | if (if ((0 > amt)) | |
321 | 321 | then (0 > (oldAcresAmount + amt)) | |
322 | 322 | else false) | |
323 | 323 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
324 | 324 | else { | |
325 | 325 | let newAcresAmount = (oldAcresAmount + amt) | |
326 | 326 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
327 | 327 | let userFpKey = keyFarmingPowerByUser(address) | |
328 | 328 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
329 | 329 | let bonusKey = keyUserFullBonus(address) | |
330 | 330 | let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0) | |
331 | 331 | if (if ((0 > bonusDelta)) | |
332 | 332 | then (0 > (oldBonus + bonusDelta)) | |
333 | 333 | else false) | |
334 | 334 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
335 | 335 | else { | |
336 | 336 | let $t059586057 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
337 | 337 | let newBonusedFp = $t059586057._1 | |
338 | 338 | let ignored = $t059586057._2 | |
339 | 339 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
340 | 340 | let acresActions = if ((amt == 0)) | |
341 | 341 | then nil | |
342 | 342 | else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))] | |
343 | 343 | $Tuple2(((((acresActions :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))) :+ IntegerEntry(bonusKey, (oldBonus + bonusDelta))), wlgResult) | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | } | |
347 | 347 | else throw("Strict value is not equal to itself.") | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 | ||
351 | 351 | func getWlgPrice (usdtBalanceCorrection) = { | |
352 | 352 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
353 | 353 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
354 | 354 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
355 | 355 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
356 | 356 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
357 | 357 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 | ||
361 | 361 | func getSwapLimitAcres () = { | |
362 | 362 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
363 | 363 | let acres2Usd = assetBalance(this, usdtAssetId) | |
364 | 364 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
365 | 365 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
366 | 366 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
367 | 367 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
368 | 368 | let now = lastBlock.timestamp | |
369 | 369 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
370 | 370 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
371 | 371 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
376 | 376 | ||
377 | 377 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
378 | 378 | ||
379 | 379 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
380 | 380 | ||
381 | 381 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
382 | 382 | ||
383 | 383 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
384 | 384 | ||
385 | 385 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
386 | 386 | ||
387 | 387 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
388 | 388 | ||
389 | 389 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
390 | 390 | ||
391 | 391 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
392 | 392 | ||
393 | 393 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
394 | 394 | ||
395 | 395 | func isArkimalIssued (nfo) = { | |
396 | 396 | let issuer = toString(nfo.issuer) | |
397 | 397 | if (if (if (if (if (if (if (if ((issuer == incubator)) | |
398 | 398 | then true | |
399 | 399 | else (issuer == breeder)) | |
400 | 400 | then true | |
401 | 401 | else (issuer == turtleIncubator)) | |
402 | 402 | then true | |
403 | 403 | else (issuer == turtleBreeder)) | |
404 | 404 | then true | |
405 | 405 | else (issuer == canineIncubator)) | |
406 | 406 | then true | |
407 | 407 | else (issuer == canineBreeder)) | |
408 | 408 | then true | |
409 | 409 | else (issuer == felineIncubator)) | |
410 | 410 | then true | |
411 | 411 | else (issuer == felineBreeder)) | |
412 | 412 | then nfo.name | |
413 | 413 | else if ((issuer == mutantBreeder)) | |
414 | 414 | then nfo.description | |
415 | 415 | else "" | |
416 | 416 | } | |
417 | 417 | ||
418 | 418 | ||
419 | 419 | func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\""))) | |
420 | 420 | then throw(("NFT is not supported: " + descr)) | |
421 | 421 | else { | |
422 | 422 | let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0] | |
423 | 423 | parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | @Callable(i) | |
428 | 428 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
429 | 429 | then throw("Access denied") | |
430 | 430 | else $Tuple2(prolog(i), 42) | |
431 | 431 | ||
432 | 432 | ||
433 | 433 | ||
434 | 434 | @Callable(i) | |
435 | 435 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
436 | 436 | then throw("Permission denied") | |
437 | 437 | else { | |
438 | 438 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
439 | 439 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | 443 | ||
444 | 444 | @Callable(i) | |
445 | 445 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
446 | 446 | then throw("permission denied") | |
447 | 447 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func unstakeAcres (amount) = { | |
453 | 453 | let prologActions = prolog(i) | |
454 | 454 | if ((0 >= amount)) | |
455 | 455 | then throw("Amount should be positive") | |
456 | 456 | else { | |
457 | 457 | let address = toString(i.caller) | |
458 | 458 | if ((size(i.payments) != 0)) | |
459 | 459 | then throw("No payments required") | |
460 | 460 | else { | |
461 | 461 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
462 | 462 | if ((arbReleaseTime > lastBlock.timestamp)) | |
463 | 463 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
464 | 464 | else { | |
465 | 465 | let $t01155211632 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
466 | 466 | let actions = $t01155211632._1 | |
467 | 467 | let wlgClaimedAmount = $t01155211632._2 | |
468 | 468 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
469 | 469 | } | |
470 | 470 | } | |
471 | 471 | } | |
472 | 472 | } | |
473 | 473 | ||
474 | 474 | ||
475 | 475 | ||
476 | 476 | @Callable(i) | |
477 | 477 | func stakeAcres () = { | |
478 | 478 | let prologActions = prolog(i) | |
479 | 479 | let address = toString(i.caller) | |
480 | 480 | if ((size(i.payments) != 1)) | |
481 | 481 | then throw("exactly 1 payment must be attached") | |
482 | 482 | else { | |
483 | 483 | let pmt = i.payments[0] | |
484 | 484 | let amt = pmt.amount | |
485 | 485 | if (if (!(isDefined(pmt.assetId))) | |
486 | 486 | then true | |
487 | 487 | else (value(pmt.assetId) != acresAssetId)) | |
488 | 488 | then throw("ACRES payments only!") | |
489 | 489 | else { | |
490 | 490 | let $t01208312159 = stakeUnstakeAcresInternal(amt, address, 0) | |
491 | 491 | let actions = $t01208312159._1 | |
492 | 492 | let wlgClaimedAmount = $t01208312159._2 | |
493 | 493 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
494 | 494 | } | |
495 | 495 | } | |
496 | 496 | } | |
497 | 497 | ||
498 | 498 | ||
499 | 499 | ||
500 | 500 | @Callable(i) | |
501 | 501 | func buyAcres () = { | |
502 | 502 | let prologActions = prolog(i) | |
503 | 503 | if ((size(i.payments) != 1)) | |
504 | 504 | then throw("exactly 1 payment must be attached") | |
505 | 505 | else { | |
506 | 506 | let pmt = i.payments[0] | |
507 | 507 | let usdtAmount = pmt.amount | |
508 | 508 | if (if (!(isDefined(pmt.assetId))) | |
509 | 509 | then true | |
510 | 510 | else (value(pmt.assetId) != usdtAssetId)) | |
511 | 511 | then throw("USDT payments only!") | |
512 | 512 | else if ((MULT6 > usdtAmount)) | |
513 | 513 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
514 | 514 | else { | |
515 | 515 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
516 | 516 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
517 | 517 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
518 | 518 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
519 | 519 | if ((req == req)) | |
520 | 520 | then { | |
521 | 521 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
522 | 522 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
523 | 523 | } | |
524 | 524 | else throw("Strict value is not equal to itself.") | |
525 | 525 | } | |
526 | 526 | } | |
527 | 527 | } | |
528 | 528 | ||
529 | 529 | ||
530 | 530 | ||
531 | 531 | @Callable(i) | |
532 | 532 | func buyAcresREADONLY (usdtAmount) = { | |
533 | 533 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
534 | 534 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
535 | 535 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | ||
540 | 540 | @Callable(i) | |
541 | 541 | func sellAcres () = { | |
542 | 542 | let prologActions = prolog(i) | |
543 | 543 | if ((size(i.payments) != 1)) | |
544 | 544 | then throw("exactly 1 payment must be attached") | |
545 | 545 | else { | |
546 | 546 | let pmt = i.payments[0] | |
547 | 547 | let acresAmount = pmt.amount | |
548 | 548 | if (if (!(isDefined(pmt.assetId))) | |
549 | 549 | then true | |
550 | 550 | else (value(pmt.assetId) != acresAssetId)) | |
551 | 551 | then throw("ACRES payments only!") | |
552 | 552 | else if ((MULT7 > acresAmount)) | |
553 | 553 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
554 | 554 | else { | |
555 | 555 | let addr = toString(i.caller) | |
556 | 556 | let $t01401614064 = getSwapLimitAcres() | |
557 | 557 | let limitAction = $t01401614064._1 | |
558 | 558 | let maxUsdt = $t01401614064._2 | |
559 | 559 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
560 | 560 | if ((acresAmount > maxAcres)) | |
561 | 561 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
562 | 562 | else { | |
563 | 563 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
564 | 564 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
565 | 565 | } | |
566 | 566 | } | |
567 | 567 | } | |
568 | 568 | } | |
569 | 569 | ||
570 | 570 | ||
571 | 571 | ||
572 | 572 | @Callable(i) | |
573 | 573 | func sellAcresREADONLY (address,acresAmount) = { | |
574 | 574 | let $t01456014608 = getSwapLimitAcres() | |
575 | 575 | let limitAction = $t01456014608._1 | |
576 | 576 | let maxUsdt = $t01456014608._2 | |
577 | 577 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
578 | 578 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
579 | 579 | } | |
580 | 580 | ||
581 | 581 | ||
582 | 582 | ||
583 | 583 | @Callable(i) | |
584 | 584 | func convertOldStakes () = if ((i.caller != this)) | |
585 | 585 | then throw("Temporarily disabled") | |
586 | 586 | else { | |
587 | 587 | let address = toString(i.caller) | |
588 | 588 | if ((size(i.payments) != 0)) | |
589 | 589 | then throw("No payments required") | |
590 | 590 | else { | |
591 | 591 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
592 | 592 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
593 | 593 | let gotAcres0 = if ((amount > 0)) | |
594 | 594 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
595 | 595 | else $Tuple2(0, 0) | |
596 | 596 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
597 | 597 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
598 | 598 | let landsResult = if (isDefined(landsStr)) | |
599 | 599 | then { | |
600 | 600 | let lands = split_51C(value(landsStr), "_") | |
601 | 601 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
602 | 602 | then throw("landAssetId is required") | |
603 | 603 | else { | |
604 | 604 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
605 | 605 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
606 | 606 | } | |
607 | 607 | ||
608 | 608 | let rr = { | |
609 | 609 | let $l = lands | |
610 | 610 | let $s = size($l) | |
611 | 611 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
612 | 612 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
613 | 613 | then $a | |
614 | 614 | else oneLand($a, $l[$i]) | |
615 | 615 | ||
616 | 616 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
617 | 617 | then $a | |
618 | 618 | else throw("List size exceeds 100") | |
619 | 619 | ||
620 | 620 | $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) | |
621 | 621 | } | |
622 | 622 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
623 | 623 | if ((finalize == finalize)) | |
624 | 624 | then { | |
625 | 625 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
626 | 626 | if ((req == req)) | |
627 | 627 | then { | |
628 | 628 | let $t01648016560 = issueNFTinternal(IdxDtx3PercConversion, i.caller) | |
629 | 629 | let nftActions = $t01648016560._1 | |
630 | 630 | let nftAssetId = $t01648016560._2 | |
631 | 631 | $Tuple5(rr._1, rr._2, rr._3, rr._4, nftActions) | |
632 | 632 | } | |
633 | 633 | else throw("Strict value is not equal to itself.") | |
634 | 634 | } | |
635 | 635 | else throw("Strict value is not equal to itself.") | |
636 | 636 | } | |
637 | 637 | else $Tuple5(0, 0, 0, 0, nil) | |
638 | 638 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
639 | 639 | let duckResult = if ((duckAssetId != "")) | |
640 | 640 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
641 | 641 | else $Tuple3(0, 0, 0) | |
642 | 642 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
643 | 643 | $Tuple2((landsResult._5 ++ x._1), x._2) | |
644 | 644 | } | |
645 | 645 | } | |
646 | 646 | ||
647 | 647 | ||
648 | 648 | ||
649 | 649 | @Callable(i) | |
650 | 650 | func unstakeLandsREADONLY (address) = { | |
651 | 651 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
652 | 652 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
653 | 653 | let landsResult = if (isDefined(landsStr)) | |
654 | 654 | then { | |
655 | 655 | let lands = split_51C(value(landsStr), "_") | |
656 | 656 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
657 | 657 | then throw("landAssetId is required") | |
658 | 658 | else { | |
659 | 659 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
660 | 660 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
661 | 661 | } | |
662 | 662 | ||
663 | 663 | let $l = lands | |
664 | 664 | let $s = size($l) | |
665 | 665 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
666 | 666 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
667 | 667 | then $a | |
668 | 668 | else oneLand($a, $l[$i]) | |
669 | 669 | ||
670 | 670 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
671 | 671 | then $a | |
672 | 672 | else throw("List size exceeds 100") | |
673 | 673 | ||
674 | 674 | $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) | |
675 | 675 | } | |
676 | 676 | else $Tuple4(0, 0, 0, 0) | |
677 | 677 | $Tuple2(nil, landsResult) | |
678 | 678 | } | |
679 | 679 | ||
680 | 680 | ||
681 | 681 | ||
682 | 682 | @Callable(i) | |
683 | 683 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
684 | 684 | then throw("Permission denied") | |
685 | 685 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
686 | 686 | ||
687 | 687 | ||
688 | 688 | ||
689 | 689 | @Callable(i) | |
690 | 690 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
691 | 691 | let amountKey = keyAcresStakedAmtByUser(address) | |
692 | 692 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
693 | 693 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
694 | 694 | let userFpKey = keyFarmingPowerByUser(address) | |
695 | 695 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
696 | 696 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
697 | 697 | let $t01872518812 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
698 | 698 | let newBonusedFp = $t01872518812._1 | |
699 | 699 | let ignored = $t01872518812._2 | |
700 | 700 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
701 | 701 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
702 | 702 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | ||
707 | 707 | @Callable(i) | |
708 | 708 | func issueNFT (forAddress,nftIndex) = if ((i.caller != wlgContract)) | |
709 | 709 | then throw("Permission denied") | |
710 | 710 | else issueNFTinternal(nftIndex, addressFromStringValue(forAddress)) | |
711 | 711 | ||
712 | 712 | ||
713 | 713 | ||
714 | 714 | @Callable(i) | |
715 | 715 | func stakeNFT () = { | |
716 | 716 | let prologActions = prolog(i) | |
717 | 717 | if ((size(i.payments) != 1)) | |
718 | 718 | then throw("Exactly one payment required") | |
719 | 719 | else { | |
720 | 720 | let pmt = value(i.payments[0]) | |
721 | 721 | if ((pmt.amount != 1)) | |
722 | 722 | then throw("NFT token should be attached as payment") | |
723 | 723 | else { | |
724 | 724 | let assetId = value(pmt.assetId) | |
725 | 725 | let asset = value(assetInfo(assetId)) | |
726 | 726 | let assetIdStr = toBase58String(assetId) | |
727 | 727 | let addr = toString(i.caller) | |
728 | 728 | let nftsKey = keyStakedNFTsByOwner(addr) | |
729 | 729 | let nftsStr = getString(nftsKey) | |
730 | 730 | let nfts = if (isDefined(nftsStr)) | |
731 | 731 | then split_4C(value(nftsStr), "_") | |
732 | 732 | else nil | |
733 | 733 | if (containsElement(nfts, assetIdStr)) | |
734 | 734 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
735 | 735 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
736 | 736 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
737 | 737 | else { | |
738 | 738 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
739 | 739 | let isWL = (asset.issuer == this) | |
740 | 740 | if (isWL) | |
741 | 741 | then { | |
742 | 742 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
743 | 743 | if ((wlNftNumber >= MAX_WL_NFTS)) | |
744 | 744 | then throw((("You can stake max " + toString(MAX_WL_NFTS)) + " of WavesLands NFTs")) | |
745 | 745 | else { | |
746 | 746 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
747 | 747 | let $t02058720665 = stakeUnstakeAcresInternal(0, addr, bonusVal) | |
748 | 748 | let actions = $t02058720665._1 | |
749 | 749 | let wlgClaimedAmount = $t02058720665._2 | |
750 | 750 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber + 1))) :+ IntegerEntry(keyWlNftTotalStaked, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount) | |
751 | 751 | } | |
752 | 752 | } | |
753 | 753 | else { | |
754 | 754 | let arkimalName = isArkimalIssued(asset) | |
755 | 755 | if ((arkimalName == "")) | |
756 | 756 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
757 | 757 | else { | |
758 | 758 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
759 | 759 | if ((arkNftNumber >= MAX_ARK_NFTS)) | |
760 | 760 | then throw((("You can stake max " + toString(MAX_ARK_NFTS)) + " of Arkimals NFTs")) | |
761 | 761 | else { | |
762 | 762 | let $t02140021483 = stakeUnstakeAcresInternal(0, addr, ARK_NFT_BONUS) | |
763 | 763 | let actions = $t02140021483._1 | |
764 | 764 | let wlgClaimedAmount = $t02140021483._2 | |
765 | 765 | $Tuple2(((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)) ++ prologActions), wlgClaimedAmount) | |
766 | 766 | } | |
767 | 767 | } | |
768 | 768 | } | |
769 | 769 | } | |
770 | 770 | } | |
771 | 771 | } | |
772 | 772 | } | |
773 | 773 | ||
774 | 774 | ||
775 | 775 | ||
776 | 776 | @Callable(i) | |
777 | 777 | func unstakeNFT (assetIdStr) = { | |
778 | 778 | let prologActions = prolog(i) | |
779 | 779 | if ((size(i.payments) != 0)) | |
780 | 780 | then throw("No payments required") | |
781 | 781 | else { | |
782 | 782 | let assetId = fromBase58String(assetIdStr) | |
783 | 783 | let addr = toString(i.caller) | |
784 | 784 | let asset = value(assetInfo(assetId)) | |
785 | 785 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
786 | 786 | if (!(isDefined(getInteger(timeKey)))) | |
787 | 787 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
788 | 788 | else { | |
789 | 789 | let nftsKey = keyStakedNFTsByOwner(addr) | |
790 | 790 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
791 | 791 | let idx = indexOf(nfts, assetIdStr) | |
792 | 792 | if (!(isDefined(idx))) | |
793 | 793 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
794 | 794 | else { | |
795 | 795 | let listAction = if ((size(nfts) > 1)) | |
796 | 796 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
797 | 797 | else DeleteEntry(nftsKey) | |
798 | 798 | let isWL = (asset.issuer == this) | |
799 | 799 | if (isWL) | |
800 | 800 | then { | |
801 | 801 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
802 | 802 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
803 | 803 | let $t02280422883 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
804 | 804 | let actions = $t02280422883._1 | |
805 | 805 | let wlgClaimedAmount = $t02280422883._2 | |
806 | 806 | $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
807 | 807 | } | |
808 | 808 | else { | |
809 | 809 | let arkimalName = isArkimalIssued(asset) | |
810 | 810 | if ((arkimalName == "")) | |
811 | 811 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
812 | 812 | else { | |
813 | 813 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
814 | 814 | let $t02354323627 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
815 | 815 | let actions = $t02354323627._1 | |
816 | 816 | let wlgClaimedAmount = $t02354323627._2 | |
817 | 817 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
818 | 818 | } | |
819 | 819 | } | |
820 | 820 | } | |
821 | 821 | } | |
822 | 822 | } | |
823 | 823 | } | |
824 | 824 | ||
825 | 825 | ||
826 | 826 | ||
827 | 827 | @Callable(i) | |
828 | 828 | func exchangeNFTs () = { | |
829 | 829 | let prologActions = prolog(i) | |
830 | 830 | if ((3 > size(i.payments))) | |
831 | 831 | then throw("Min one USDT and 2 NFT payments allowed") | |
832 | 832 | else if ((size(i.payments) > 6)) | |
833 | 833 | then throw("Max one USDT and 5 NFT payments allowed") | |
834 | 834 | else { | |
835 | 835 | let addr = toString(i.caller) | |
836 | 836 | func addUp (acc,pmt) = { | |
837 | 837 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
838 | 838 | if ((assetId == usdtAssetId)) | |
839 | 839 | then $Tuple3((acc._1 + pmt.amount), acc._2, acc._3) | |
840 | 840 | else { | |
841 | 841 | let asset = value(assetInfo(assetId)) | |
842 | 842 | if ((asset.issuer != this)) | |
843 | 843 | then throw("Only WL-issued NFTs allowed") | |
844 | 844 | else { | |
845 | 845 | let bonusPerc = bonusByDescription(value(asset.description)) | |
846 | 846 | $Tuple3(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1))) | |
847 | 847 | } | |
848 | 848 | } | |
849 | 849 | } | |
850 | 850 | ||
851 | 851 | let $t02477524854 = { | |
852 | 852 | let $l = i.payments | |
853 | 853 | let $s = size($l) | |
854 | 854 | let $acc0 = $Tuple3(0, 0, nil) | |
855 | 855 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
856 | 856 | then $a | |
857 | 857 | else addUp($a, $l[$i]) | |
858 | 858 | ||
859 | 859 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
860 | 860 | then $a | |
861 | 861 | else throw("List size exceeds 6") | |
862 | 862 | ||
863 | 863 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
864 | 864 | } | |
865 | 865 | let usdtFee = $t02477524854._1 | |
866 | 866 | let totalBonus = $t02477524854._2 | |
867 | 867 | let burnActions = $t02477524854._3 | |
868 | 868 | let nftIndex = if ((totalBonus == 3)) | |
869 | 869 | then 2 | |
870 | 870 | else if ((totalBonus == 5)) | |
871 | 871 | then 3 | |
872 | 872 | else if ((totalBonus == 10)) | |
873 | 873 | then 4 | |
874 | 874 | else throw("Only bonuses of 3%, 5% or 10% are supported") | |
875 | - | let change = ((totalBonus * MULT6) | |
875 | + | let change = (usdtFee - (totalBonus * MULT6)) | |
876 | 876 | if ((0 > change)) | |
877 | - | then throw((("You need to attach " + | |
877 | + | then throw((("You need to attach " + toString(totalBonus)) + " USDT as fee")) | |
878 | 878 | else { | |
879 | 879 | let changeActions = if ((change > 0)) | |
880 | 880 | then [ScriptTransfer(i.caller, change, usdtAssetId)] | |
881 | 881 | else nil | |
882 | - | let $ | |
883 | - | let issueNftActions = $ | |
884 | - | let nftAssetId = $ | |
882 | + | let $t02531125383 = issueNFTinternal(nftIndex, i.caller) | |
883 | + | let issueNftActions = $t02531125383._1 | |
884 | + | let nftAssetId = $t02531125383._2 | |
885 | 885 | let burned = size(burnActions) | |
886 | 886 | let burnCounterActions = if ((burned == 0)) | |
887 | 887 | then nil | |
888 | 888 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
889 | 889 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(i.caller, 1, nftAssetId)), nftAssetId) | |
890 | 890 | } | |
891 | 891 | } | |
892 | 892 | } | |
893 | 893 | ||
894 | 894 |
github/deemru/w8io/026f985 297.65 ms ◑