tx · 5mRRCsVUaXPVqKpSm48sU9papkYbHZCTNBTwV17kemxR 3NA6gug1TT67nGzrAGa36rG5nzTzUGtFQG9: -0.01300000 Waves 2025.01.28 19:07 [3479152] smart account 3NA6gug1TT67nGzrAGa36rG5nzTzUGtFQG9 > SELF 0.00000000 Waves
{ "type": 13, "id": "5mRRCsVUaXPVqKpSm48sU9papkYbHZCTNBTwV17kemxR", "fee": 1300000, "feeAssetId": null, "timestamp": 1738080521413, "version": 2, "chainId": 84, "sender": "3NA6gug1TT67nGzrAGa36rG5nzTzUGtFQG9", "senderPublicKey": "3gX6tHzxt5SFVKDcuDS9r5RxJ9erHrBxGwv3dZoi4SAW", "proofs": [ "3Q6xsVWprrq814KQweTogGUh3wfGeC31fJ18KZeGS7NVHmcHSmZojo5mp99mJGFeY7KLnrTWz8F62LnySsrP2dpd" ], "script": "base64:AAIFAAAAAAAAABYIAhIDCgEIEgASAwoBCBIAEgQKAgEIAAAAGAEAAAAHZ2V0Qm9vbAAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgcBAAAACWlzVGVzdEVudgAAAAAJAQAAAAdnZXRCb29sAAAAAQIAAAAHVEVTVEVOVgEAAAAXc3RhdGljS2V5X29yYWNsZUFkZHJlc3MAAAAAAgAAABRzdGF0aWNfb3JhY2xlQWRkcmVzcwEAAAAWc3RhdGljS2V5X2l0ZW1zQWRkcmVzcwAAAAACAAAAE3N0YXRpY19pdGVtc0FkZHJlc3MBAAAAHnN0YXRpY0tleV9tdXRhbnRGYXJtaW5nQWRkcmVzcwAAAAACAAAAG3N0YXRpY19tdXRhbnRGYXJtaW5nQWRkcmVzcwEAAAASc3RhdGljS2V5X2V4dHJhRmVlAAAAAAIAAAAPc3RhdGljX2V4dHJhRmVlAQAAABdzdGF0aWNLZXlfZmVlQ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AAAAKc2Vjb25kVXNlcgAAAAAAAAAAAQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAApzZWNvbmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAACnNlY29uZFVzZXIAAAAAAAAAAAEAAAAAAAAAAAAEAAAAD3RoaXJkVXNlclNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAl0aGlyZFVzZXIAAAAAAAAAAAEDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAJdGhpcmRVc2VyAAAAAAAAAAABAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAACXRoaXJkVXNlcgAAAAAAAAAAAQAAAAAAAAAAAAQAAAAPc2lnbmF0dXJlc0NvdW50CQAAZAAAAAIJAABkAAAAAgUAAAAPZmlyc3RVc2VyU2lnbmVkBQAAABBzZWNvbmRVc2VyU2lnbmVkBQAAAA90aGlyZFVzZXJTaWduZWQEAAAAByRtYXRjaDAFAAAAAnR4CQAAZwAAAAIFAAAAD3NpZ25hdHVyZXNDb3VudAAAAAAAAAAAAVilqsw=", "height": 3479152, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BNzNLAeEzKNMkQYn1XieKbmf4VimvZCyd8ykuVTBwDpn Next: AFzcMHErY6eSy6JUHHnJ13vfMtdSBy2Vfcuu4JKwfitb Diff:
Old | New | Differences | |
---|---|---|---|
210 | 210 | then { | |
211 | 211 | let bonus = if ((artefactId == "")) | |
212 | 212 | then 0 | |
213 | - | else (intValue / | |
213 | + | else (intValue / 20) | |
214 | 214 | ([IntegerEntry(keyFeedLimit(invoker), ((tryGetInteger(keyFeedLimit(invoker)) + intValue) + bonus)), Burn(assetId, 1)] ++ validPayment) | |
215 | 215 | } | |
216 | 216 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func getBool (key) = match getBoolean(this, key) { | |
5 | 5 | case b: Boolean => | |
6 | 6 | b | |
7 | 7 | case _ => | |
8 | 8 | false | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func isTestEnv () = getBool("TESTENV") | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func staticKey_oracleAddress () = "static_oracleAddress" | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func staticKey_itemsAddress () = "static_itemsAddress" | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func staticKey_mutantFarmingAddress () = "static_mutantFarmingAddress" | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func staticKey_extraFee () = "static_extraFee" | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func staticKey_feeAggregator () = "static_feeAggregator" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func staticKey_scriptMasterAddress () = "static_scriptMasterAddress" | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func keyUnstakeHeight (artefactName,artefactId) = (((artefactName + "_") + artefactId) + "_unstake_height") | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func keyArtefactOwner (artefactName,owner) = (((artefactName + "_") + owner) + "_owner") | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func keyFeedLimit (owner) = ("limit_" + owner) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | let stakeable = ["ART-LAKE", "ART-XTREE", "ART-XSOCK", "ART-XMISTL"] | |
43 | 43 | ||
44 | 44 | func tryGetString (key) = match getString(this, key) { | |
45 | 45 | case a: String => | |
46 | 46 | a | |
47 | 47 | case _ => | |
48 | 48 | "" | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func tryGetInteger (key) = match getInteger(this, key) { | |
53 | 53 | case a: Int => | |
54 | 54 | a | |
55 | 55 | case _ => | |
56 | 56 | 0 | |
57 | 57 | } | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func tryGetStringExternal (address,key) = match getString(address, key) { | |
61 | 61 | case a: String => | |
62 | 62 | a | |
63 | 63 | case _ => | |
64 | 64 | "" | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getItemsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_itemsAddress()))) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func getMutantFarmingAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_mutantFarmingAddress()))) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func getScriptMasterAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_scriptMasterAddress()))) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func asString (value) = match value { | |
84 | 84 | case string: String => | |
85 | 85 | string | |
86 | 86 | case _ => | |
87 | 87 | throw("wrong type, expected: String") | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func asInt (value) = match value { | |
92 | 92 | case int: Int => | |
93 | 93 | int | |
94 | 94 | case _ => | |
95 | 95 | throw("wrong type, expected: Int") | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
100 | 100 | then throw("WCAP: Please attach waves") | |
101 | 101 | else { | |
102 | 102 | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
103 | 103 | if ((payment.amount != feeAmount)) | |
104 | 104 | then throw((("WCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
105 | 105 | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func itemIsInCoolDown (artefactName,artefactId) = { | |
110 | 110 | let unstakeHeightLast = tryGetInteger(keyUnstakeHeight(artefactName, artefactId)) | |
111 | 111 | let cooldownPeriod = 240 | |
112 | 112 | if ((height > (unstakeHeightLast + cooldownPeriod))) | |
113 | 113 | then false | |
114 | 114 | else true | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(i) | |
119 | 119 | func configureOracle (oracle) = if ((i.caller != this)) | |
120 | 120 | then throw("admin only") | |
121 | 121 | else [StringEntry(staticKey_oracleAddress(), oracle)] | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | ||
125 | 125 | @Callable(i) | |
126 | 126 | func stakeItem () = { | |
127 | 127 | let validPayment = checkAdditionalPayment(i.payments[1]) | |
128 | 128 | if (!(if ((size(i.payments) == 2)) | |
129 | 129 | then (i.payments[0].amount == 1) | |
130 | 130 | else false)) | |
131 | 131 | then throw("Invalid payment") | |
132 | 132 | else { | |
133 | 133 | let assetId = value(i.payments[0].assetId) | |
134 | 134 | let artefactName = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(assetId)], nil)) | |
135 | 135 | if ((artefactName == artefactName)) | |
136 | 136 | then if (!(containsElement(stakeable, artefactName))) | |
137 | 137 | then throw("You can't stake this artafect") | |
138 | 138 | else if (itemIsInCoolDown(artefactName, toBase58String(assetId))) | |
139 | 139 | then throw("Item can't be staked yet, it's in cooldown") | |
140 | 140 | else { | |
141 | 141 | let invoker = toString(i.caller) | |
142 | 142 | let artefactId = tryGetString(keyArtefactOwner(artefactName, invoker)) | |
143 | 143 | if ((artefactId != "")) | |
144 | 144 | then throw(("You are already staking " + artefactName)) | |
145 | 145 | else { | |
146 | 146 | let boostDuck = if ((artefactName == "ART-LAKE")) | |
147 | 147 | then invoke(getItemsAddress(), "manipulateBoostAccount", [2, invoker], nil) | |
148 | 148 | else if ((artefactName == "ART-XTREE")) | |
149 | 149 | then invoke(getItemsAddress(), "manipulateBoostAccount", [3, invoker], nil) | |
150 | 150 | else nil | |
151 | 151 | if ((boostDuck == boostDuck)) | |
152 | 152 | then ([StringEntry(keyArtefactOwner(artefactName, invoker), toBase58String(assetId))] ++ validPayment) | |
153 | 153 | else throw("Strict value is not equal to itself.") | |
154 | 154 | } | |
155 | 155 | } | |
156 | 156 | else throw("Strict value is not equal to itself.") | |
157 | 157 | } | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | ||
162 | 162 | @Callable(i) | |
163 | 163 | func unstakeItem (artefactName) = { | |
164 | 164 | let validPayment = checkAdditionalPayment(i.payments[0]) | |
165 | 165 | if (!(containsElement(stakeable, artefactName))) | |
166 | 166 | then throw("This artefact doesn't exist") | |
167 | 167 | else { | |
168 | 168 | let invoker = toString(i.caller) | |
169 | 169 | let artefactId = tryGetString(keyArtefactOwner(artefactName, invoker)) | |
170 | 170 | if ((artefactName == "ART-XSOCK")) | |
171 | 171 | then throw("You can not unstake ART-XSOCK anymore") | |
172 | 172 | else if ((artefactId == "")) | |
173 | 173 | then throw(("You didnt stake " + artefactName)) | |
174 | 174 | else { | |
175 | 175 | let boostDuck = if ((artefactName == "ART-LAKE")) | |
176 | 176 | then invoke(getItemsAddress(), "manipulateBoostAccount", [-2, invoker], nil) | |
177 | 177 | else if ((artefactName == "ART-XTREE")) | |
178 | 178 | then invoke(getItemsAddress(), "manipulateBoostAccount", [-3, invoker], nil) | |
179 | 179 | else nil | |
180 | 180 | if ((boostDuck == boostDuck)) | |
181 | 181 | then ([IntegerEntry(keyUnstakeHeight(artefactName, artefactId), height), ScriptTransfer(i.caller, 1, fromBase58String(artefactId)), DeleteEntry(keyArtefactOwner(artefactName, invoker))] ++ validPayment) | |
182 | 182 | else throw("Strict value is not equal to itself.") | |
183 | 183 | } | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(i) | |
190 | 190 | func oneTimeUseFeed () = { | |
191 | 191 | let validPayment = checkAdditionalPayment(i.payments[1]) | |
192 | 192 | if (!(if ((size(i.payments) == 2)) | |
193 | 193 | then (i.payments[0].amount == 1) | |
194 | 194 | else false)) | |
195 | 195 | then throw("Invalid payment") | |
196 | 196 | else { | |
197 | 197 | let assetId = value(i.payments[0].assetId) | |
198 | 198 | let artefactName = asString(invoke(getItemsAddress(), "checkArtefactDetails", [toBase58String(assetId)], nil)) | |
199 | 199 | if ((artefactName == artefactName)) | |
200 | 200 | then { | |
201 | 201 | let artefactId = tryGetString(keyArtefactOwner("ART-XSOCK", toString(i.caller))) | |
202 | 202 | if (!(contains(artefactName, "ART-FEED"))) | |
203 | 203 | then throw("You can't use this artafect to earn feedlimit!") | |
204 | 204 | else { | |
205 | 205 | let invoker = toString(i.caller) | |
206 | 206 | let amount = drop(artefactName, 8) | |
207 | 207 | let intValue = parseIntValue(amount) | |
208 | 208 | let topup = invoke(getMutantFarmingAddress(), "topUpReward", ["FEED", (intValue / 2)], nil) | |
209 | 209 | if ((topup == topup)) | |
210 | 210 | then { | |
211 | 211 | let bonus = if ((artefactId == "")) | |
212 | 212 | then 0 | |
213 | - | else (intValue / | |
213 | + | else (intValue / 20) | |
214 | 214 | ([IntegerEntry(keyFeedLimit(invoker), ((tryGetInteger(keyFeedLimit(invoker)) + intValue) + bonus)), Burn(assetId, 1)] ++ validPayment) | |
215 | 215 | } | |
216 | 216 | else throw("Strict value is not equal to itself.") | |
217 | 217 | } | |
218 | 218 | } | |
219 | 219 | else throw("Strict value is not equal to itself.") | |
220 | 220 | } | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | ||
225 | 225 | @Callable(i) | |
226 | 226 | func addFeedLimit (amount,address) = if (if ((i.caller != getMutantFarmingAddress())) | |
227 | 227 | then (i.caller != getScriptMasterAddress()) | |
228 | 228 | else false) | |
229 | 229 | then throw("admin only") | |
230 | 230 | else [IntegerEntry(keyFeedLimit(address), (tryGetInteger(keyFeedLimit(address)) + amount))] | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Verifier(tx) | |
234 | 234 | func verify () = if (isTestEnv()) | |
235 | 235 | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
236 | 236 | else { | |
237 | 237 | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
238 | 238 | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
239 | 239 | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
240 | 240 | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
241 | 241 | then 1 | |
242 | 242 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
243 | 243 | then 1 | |
244 | 244 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
245 | 245 | then 1 | |
246 | 246 | else 0 | |
247 | 247 | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
248 | 248 | then 1 | |
249 | 249 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
250 | 250 | then 1 | |
251 | 251 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
252 | 252 | then 1 | |
253 | 253 | else 0 | |
254 | 254 | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
255 | 255 | then 1 | |
256 | 256 | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
257 | 257 | then 1 | |
258 | 258 | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
259 | 259 | then 1 | |
260 | 260 | else 0 | |
261 | 261 | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
262 | 262 | match tx { | |
263 | 263 | case _ => | |
264 | 264 | (signaturesCount >= 1) | |
265 | 265 | } | |
266 | 266 | } | |
267 | 267 |
github/deemru/w8io/169f3d6 29.16 ms ◑