tx · 4NLLUKbMXoXeWCR7VAjNKSgBN7YxvLkX1EyEVXbKuy9A 3MtMeTkpnPVAVkfrsFLuLua5urLVbbSBw6p: -0.01600000 Waves 2023.08.08 10:30 [2701329] smart account 3MtMeTkpnPVAVkfrsFLuLua5urLVbbSBw6p > SELF 0.00000000 Waves
{ "type": 13, "id": "4NLLUKbMXoXeWCR7VAjNKSgBN7YxvLkX1EyEVXbKuy9A", "fee": 1600000, "feeAssetId": null, "timestamp": 1691479554525, "version": 2, "chainId": 84, "sender": "3MtMeTkpnPVAVkfrsFLuLua5urLVbbSBw6p", "senderPublicKey": "DojBiW1SWnPHvXvUpRw5AcLmqiiYR1dwvSCXKoGc6haJ", "proofs": [ "3Nq2fxLQwEU4u3YM4nnNADnA7CvsEM5gJPQ9UDprr35dFb65tofCvtLYocDzZxZMpCdMgqWhenrjTUtM5YyzJQnc" ], "script": "base64:BgJVCAISBgoECAgICBIGCgQBCAgBEgkKBwgICAgICAgSBAoCAQgSAwoBCBIECgIBBBIDCgEIEgUKAwEIARILCgkBCAgBAQEBAQQSABIAEgMKAQgSAwoBCEYACVNFUEFSQVRPUgICX18ACEtFWV9JTklUAgRJTklUAAxLRVlfTVVMVElTSUcCCE1VTFRJU0lHAApLRVlfU1RBVFVTAgZTVEFUVVMACktFWV9QQVVTRUQCBlBBVVNFRAAKS0VZX1BBVVNFUgIGUEFVU0VSAAxLRVlfRVhFQ1VUT1ICCEVYRUNVVE9SABBLRVlfUk9PVF9BREFQVEVSAgxST09UX0FEQVBURVIAE0tFWV9DQUxMRVJfQ09OVFJBQ1QCD0NBTExFUl9DT05UUkFDVAAJS0VZX0NIQUlOAgVDSEFJTgALS0VZX0JJTkRJTkcCB0JJTkRJTkcAB0tFWV9GRUUCA0ZFRQALS0VZX0JBTEFOQ0UCB0JBTEFOQ0UAEUtFWV9GRUVfUkVDSVBJRU5UAg1GRUVfUkVDSVBJRU5UABhLRVlfUkVGRVJSRVJfRkVFX1BFUkNFTlQCFFJFRkVS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VBZGRyZXNzAgUHcGF1c2VyXwIcdXBkYXRlUGF1c2VyOiBpbnZhbGlkIHBhdXNlcgcDCQAAAgUDZXJyBQNlcnIJAJQKAgkBC19zYXZlUGF1c2VyAQkBEUBleHRyTmF0aXZlKDEwNjIpAQUHcGF1c2VyXwUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQtzZXRNdWx0aXNpZwEJbXVsdGlzaWdfBANlcnIDCQERX29ubHlUaGlzQ29udHJhY3QBCAUBaQZjYWxsZXIJARBfdmFsaWRhdGVBZGRyZXNzAgUJbXVsdGlzaWdfAh1zZXRNdWx0aXNpZzogaW52YWxpZCBtdWx0aXNpZwcDCQAAAgUDZXJyBQNlcnIJAJQKAgkBDV9zYXZlTXVsdGlzaWcBCQERQGV4dHJOYXRpdmUoMTA2MikBBQltdWx0aXNpZ18FBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwCQCiCAEFDEtFWV9NVUxUSVNJRwMJAAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnCQC5CQIJAMwIAgUKS0VZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleSunrXE=", "height": 2701329, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 26uthRGKiQUUYbPCRwkidbYL99ZaXNZm3wd6pJgFrKVd Next: none Diff:
Old | New | Differences | |
---|---|---|---|
409 | 409 | let normalizedGasless = _normalizeDecimals(gaslessReward_, assetDecimals, DECIMALS) | |
410 | 410 | let invocation = invoke(_loadRootAdapter(), FUNC_MINT_TOKENS, [executionChainId_, executionAsset, normalizedAmount, recipient_, normalizedGasless], nil) | |
411 | 411 | if ((invocation == invocation)) | |
412 | - | then $Tuple2 | |
412 | + | then $Tuple2(((_saveFee(assetId, (_loadFee(assetId) + amountToFee)) ++ _saveBalance(assetId, (_loadBalance(assetId) + amountToSend))) ++ referrerActions), unit) | |
413 | 413 | else throw("Strict value is not equal to itself.") | |
414 | 414 | } | |
415 | 415 | else throw("Strict value is not equal to itself.") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEPARATOR = "__" | |
5 | 5 | ||
6 | 6 | let KEY_INIT = "INIT" | |
7 | 7 | ||
8 | 8 | let KEY_MULTISIG = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let KEY_STATUS = "STATUS" | |
11 | 11 | ||
12 | 12 | let KEY_PAUSED = "PAUSED" | |
13 | 13 | ||
14 | 14 | let KEY_PAUSER = "PAUSER" | |
15 | 15 | ||
16 | 16 | let KEY_EXECUTOR = "EXECUTOR" | |
17 | 17 | ||
18 | 18 | let KEY_ROOT_ADAPTER = "ROOT_ADAPTER" | |
19 | 19 | ||
20 | 20 | let KEY_CALLER_CONTRACT = "CALLER_CONTRACT" | |
21 | 21 | ||
22 | 22 | let KEY_CHAIN = "CHAIN" | |
23 | 23 | ||
24 | 24 | let KEY_BINDING = "BINDING" | |
25 | 25 | ||
26 | 26 | let KEY_FEE = "FEE" | |
27 | 27 | ||
28 | 28 | let KEY_BALANCE = "BALANCE" | |
29 | 29 | ||
30 | 30 | let KEY_FEE_RECIPIENT = "FEE_RECIPIENT" | |
31 | 31 | ||
32 | 32 | let KEY_REFERRER_FEE_PERCENT = "REFERRER_FEE_PERCENT" | |
33 | 33 | ||
34 | 34 | let FUNC_MINT_TOKENS = "mintTokens" | |
35 | 35 | ||
36 | 36 | let WAVES = "WAVES" | |
37 | 37 | ||
38 | 38 | let WAVES_DECIMALS = 8 | |
39 | 39 | ||
40 | 40 | let DECIMALS = 6 | |
41 | 41 | ||
42 | 42 | let PERCENT_FACTOR = 1000000 | |
43 | 43 | ||
44 | 44 | let MAX_REFERRER_FEE = 200000 | |
45 | 45 | ||
46 | 46 | let MAX_INT = 9223372036854775807 | |
47 | 47 | ||
48 | 48 | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
49 | 49 | case a: Address => | |
50 | 50 | true | |
51 | 51 | case _ => | |
52 | 52 | throw(err_) | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func _validateAsset (assetId_,err_) = match assetInfo(fromBase58String(assetId_)) { | |
57 | 57 | case a: Asset => | |
58 | 58 | true | |
59 | 59 | case _ => | |
60 | 60 | throw(err_) | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_)) | |
65 | 65 | then true | |
66 | 66 | else (val_ > upperBoundary_)) | |
67 | 67 | then throw(err_) | |
68 | 68 | else true | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func _validateBool (val_,target_,err_) = if ((val_ != target_)) | |
72 | 72 | then throw(err_) | |
73 | 73 | else true | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func _validateString (val_,err_) = if (if ((0 >= size(val_))) | |
77 | 77 | then true | |
78 | 78 | else contains(val_, SEPARATOR)) | |
79 | 79 | then throw(err_) | |
80 | 80 | else true | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func _validateEmptyString (val_,err_) = if ((size(val_) > 0)) | |
84 | 84 | then throw(err_) | |
85 | 85 | else true | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_)) | |
89 | 89 | then throw(err_) | |
90 | 90 | else true | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func _validateReferrer (referrer_,err_) = if ((referrer_ != "")) | |
94 | 94 | then _validateAddress(referrer_, err_) | |
95 | 95 | else true | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func _getDecimals (assetId_) = match assetInfo(fromBase58String(assetId_)) { | |
99 | 99 | case a: Asset => | |
100 | 100 | a.decimals | |
101 | 101 | case _ => | |
102 | 102 | throw(("_getDecimals: no asset=" + assetId_)) | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func _normalizeDecimals (amount_,sourceDecimals_,targetDecimals_) = if ((sourceDecimals_ >= targetDecimals_)) | |
107 | 107 | then (amount_ / pow(10, 0, (sourceDecimals_ - targetDecimals_), 0, 0, DOWN)) | |
108 | 108 | else (amount_ * pow(10, 0, (targetDecimals_ - sourceDecimals_), 0, 0, DOWN)) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func _loadInit () = match getBoolean(KEY_INIT) { | |
112 | 112 | case a: Boolean => | |
113 | 113 | a | |
114 | 114 | case _ => | |
115 | 115 | false | |
116 | 116 | } | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)] | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func _loadPause () = match getBoolean(KEY_PAUSED) { | |
123 | 123 | case a: Boolean => | |
124 | 124 | a | |
125 | 125 | case _ => | |
126 | 126 | false | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)] | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func _loadPauser () = match getString(KEY_PAUSER) { | |
134 | 134 | case a: String => | |
135 | 135 | addressFromStringValue(a) | |
136 | 136 | case _ => | |
137 | 137 | Address(base58'') | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))] | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func _loadMultisig () = match getString(KEY_MULTISIG) { | |
145 | 145 | case a: String => | |
146 | 146 | addressFromStringValue(a) | |
147 | 147 | case _ => | |
148 | 148 | Address(base58'') | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))] | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func _loadExecutor () = match getString(KEY_EXECUTOR) { | |
156 | 156 | case a: String => | |
157 | 157 | addressFromStringValue(a) | |
158 | 158 | case _ => | |
159 | 159 | Address(base58'') | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func _saveExecutor (executor_) = [StringEntry(KEY_EXECUTOR, toString(executor_))] | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func _loadCallerContract () = match getString(KEY_CALLER_CONTRACT) { | |
167 | 167 | case a: String => | |
168 | 168 | a | |
169 | 169 | case _ => | |
170 | 170 | "" | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func _saveCallerContract (caller_) = [StringEntry(KEY_CALLER_CONTRACT, caller_)] | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func _loadChain (chainId_) = match getBoolean(makeString([KEY_CHAIN, toString(chainId_)], SEPARATOR)) { | |
178 | 178 | case a: Boolean => | |
179 | 179 | a | |
180 | 180 | case _ => | |
181 | 181 | false | |
182 | 182 | } | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func _saveChain (chainId_,val_) = [BooleanEntry(makeString([KEY_CHAIN, toString(chainId_)], SEPARATOR), val_)] | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func _loadBinding (executionChainId_,assetId_) = match getString(makeString([KEY_BINDING, toString(executionChainId_), toBase58String(assetId_)], SEPARATOR)) { | |
189 | 189 | case a: String => | |
190 | 190 | let struct = split(a, SEPARATOR) | |
191 | 191 | $Tuple7(struct[0], parseIntValue(struct[1]), parseIntValue(struct[2]), parseIntValue(struct[3]), parseIntValue(struct[4]), parseIntValue(struct[5]), if ((struct[6] == "1")) | |
192 | 192 | then true | |
193 | 193 | else false) | |
194 | 194 | case _ => | |
195 | 195 | $Tuple7("", 0, 0, 0, 0, 0, false) | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func _saveBinding (executionChainId_,assetId_,binding_) = [StringEntry(makeString([KEY_BINDING, toString(executionChainId_), toBase58String(assetId_)], SEPARATOR), makeString([binding_._1, toString(binding_._2), toString(binding_._3), toString(binding_._4), toString(binding_._5), toString(binding_._6), if (binding_._7) | |
200 | 200 | then "1" | |
201 | 201 | else "0"], SEPARATOR))] | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func _loadFee (assetId_) = match getInteger(makeString([KEY_FEE, toBase58String(assetId_)], SEPARATOR)) { | |
205 | 205 | case a: Int => | |
206 | 206 | a | |
207 | 207 | case _ => | |
208 | 208 | 0 | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func _saveFee (assetId_,val_) = [IntegerEntry(makeString([KEY_FEE, toBase58String(assetId_)], SEPARATOR), val_)] | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | func _loadBalance (assetId_) = match getInteger(makeString([KEY_BALANCE, toBase58String(assetId_)], SEPARATOR)) { | |
216 | 216 | case a: Int => | |
217 | 217 | a | |
218 | 218 | case _ => | |
219 | 219 | 0 | |
220 | 220 | } | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func _saveBalance (assetId_,val_) = [IntegerEntry(makeString([KEY_BALANCE, toBase58String(assetId_)], SEPARATOR), val_)] | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func _loadRootAdapter () = match getString(KEY_ROOT_ADAPTER) { | |
227 | 227 | case a: String => | |
228 | 228 | addressFromStringValue(a) | |
229 | 229 | case _ => | |
230 | 230 | Address(base58'') | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func _saveRootAdapter (adapter_) = [StringEntry(KEY_ROOT_ADAPTER, toString(adapter_))] | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func _loadFeeRecipient () = match getString(KEY_FEE_RECIPIENT) { | |
238 | 238 | case a: String => | |
239 | 239 | addressFromStringValue(a) | |
240 | 240 | case _ => | |
241 | 241 | Address(base58'') | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func _saveFeeRecipient (val_) = [StringEntry(KEY_FEE_RECIPIENT, toString(val_))] | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func _loadReferrerFeePercent (executionChainId_,referrer_) = match getInteger(makeString([KEY_REFERRER_FEE_PERCENT, toString(executionChainId_), toString(referrer_)], SEPARATOR)) { | |
249 | 249 | case a: Int => | |
250 | 250 | a | |
251 | 251 | case _ => | |
252 | 252 | 0 | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func _saveReferrerFeePercent (executionChainId_,referrer_,val_) = [IntegerEntry(makeString([KEY_REFERRER_FEE_PERCENT, toString(executionChainId_), toString(referrer_)], SEPARATOR), val_)] | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
260 | 260 | then throw("_onlyThisContract: revert") | |
261 | 261 | else true | |
262 | 262 | ||
263 | 263 | ||
264 | 264 | func _whenMultisigSet () = if ((_loadMultisig() == Address(base58''))) | |
265 | 265 | then throw("_whenMultisigSet: revert") | |
266 | 266 | else true | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func _whenNotInitialized () = if (_loadInit()) | |
270 | 270 | then throw("_whenNotInitialized: revert") | |
271 | 271 | else true | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func _whenInitialized () = if (!(_loadInit())) | |
275 | 275 | then throw("_whenInitialized: revert") | |
276 | 276 | else true | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func _whenNotPaused () = if (_loadPause()) | |
280 | 280 | then throw("_whenNotPaused: revert") | |
281 | 281 | else true | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func _whenPaused () = if (!(_loadPause())) | |
285 | 285 | then throw("_whenPaused: revert") | |
286 | 286 | else true | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func _onlyPauser (caller_) = if ((caller_ != _loadPauser())) | |
290 | 290 | then throw("_onlyPauser: revert") | |
291 | 291 | else true | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | func _asInt (val_) = match val_ { | |
295 | 295 | case a: Int => | |
296 | 296 | a | |
297 | 297 | case _ => | |
298 | 298 | throw("_asInt: revert") | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func _asBytes (val_) = match val_ { | |
303 | 303 | case a: ByteVector => | |
304 | 304 | a | |
305 | 305 | case _ => | |
306 | 306 | throw("_asBytes: revert") | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func _validateExecutor (val_,err_) = if ((val_ != _loadExecutor())) | |
311 | 311 | then throw(err_) | |
312 | 312 | else true | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | func _validateCaller (val_,err_) = if ((val_ != _loadCallerContract())) | |
316 | 316 | then throw(err_) | |
317 | 317 | else true | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | func _validateChain (executionChainId_,err_) = if (!(_loadChain(executionChainId_))) | |
321 | 321 | then throw(err_) | |
322 | 322 | else true | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | @Callable(i) | |
326 | 326 | func init (executor_,adapter_,pauser_,feeRecipient_) = { | |
327 | 327 | let err = if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
328 | 328 | then _whenNotInitialized() | |
329 | 329 | else false) | |
330 | 330 | then _whenMultisigSet() | |
331 | 331 | else false) | |
332 | 332 | then _validateAddress(executor_, "init: invalid executor") | |
333 | 333 | else false) | |
334 | 334 | then _validateAddress(adapter_, "init: invalid adapter") | |
335 | 335 | else false) | |
336 | 336 | then _validateAddress(pauser_, "init: invalid pauser") | |
337 | 337 | else false) | |
338 | 338 | then _validateAddress(feeRecipient_, "init: invalid feeRecipient") | |
339 | 339 | else false | |
340 | 340 | if ((err == err)) | |
341 | 341 | then $Tuple2(((((_saveInit(true) ++ _saveExecutor(addressFromStringValue(executor_))) ++ _saveRootAdapter(addressFromStringValue(adapter_))) ++ _savePauser(addressFromStringValue(pauser_))) ++ _saveFeeRecipient(addressFromStringValue(feeRecipient_))), unit) | |
342 | 342 | else throw("Strict value is not equal to itself.") | |
343 | 343 | } | |
344 | 344 | ||
345 | 345 | ||
346 | 346 | ||
347 | 347 | @Callable(i) | |
348 | 348 | func lockTokens (executionChainId_,recipient_,referrer_,gaslessReward_) = { | |
349 | 349 | let err = if (if (if (if (if (if (_whenInitialized()) | |
350 | 350 | then _whenNotPaused() | |
351 | 351 | else false) | |
352 | 352 | then _validateChain(executionChainId_, "lockTokens: invalid execution chain") | |
353 | 353 | else false) | |
354 | 354 | then _validatePaymentsSize(i.payments, 1, "lockTokens: no payment") | |
355 | 355 | else false) | |
356 | 356 | then _validateInt(gaslessReward_, 0, MAX_INT, "lockTokens: invalid gaslessReward") | |
357 | 357 | else false) | |
358 | 358 | then _validateInt(i.payments[0].amount, 0, MAX_INT, "lockTokens: invalid payment amount") | |
359 | 359 | else false) | |
360 | 360 | then _validateReferrer(referrer_, "lockTokens: invalid referrer") | |
361 | 361 | else false | |
362 | 362 | if ((err == err)) | |
363 | 363 | then { | |
364 | 364 | let amount = i.payments[0].amount | |
365 | 365 | let assetId = match i.payments[0].assetId { | |
366 | 366 | case a: ByteVector => | |
367 | 367 | a | |
368 | 368 | case _ => | |
369 | 369 | throw("lockTokens: invalid asset") | |
370 | 370 | } | |
371 | 371 | let binding = _loadBinding(executionChainId_, assetId) | |
372 | 372 | let executionAsset = binding._1 | |
373 | 373 | let minAmount = binding._2 | |
374 | 374 | let minFee = binding._3 | |
375 | 375 | let thresholdFee = binding._4 | |
376 | 376 | let beforePercentFee = binding._5 | |
377 | 377 | let afterPercentFee = binding._6 | |
378 | 378 | let enabled = binding._7 | |
379 | 379 | let err1 = if (if (_validateString(executionAsset, "lockTokens: no such binding")) | |
380 | 380 | then _validateInt(amount, minAmount, MAX_INT, "lockTokens: less than min") | |
381 | 381 | else false) | |
382 | 382 | then _validateBool(enabled, true, "lockTokens: token is disabled") | |
383 | 383 | else false | |
384 | 384 | if ((err1 == err1)) | |
385 | 385 | then { | |
386 | 386 | let assetDecimals = _getDecimals(toBase58String(assetId)) | |
387 | 387 | let percent = if ((amount > thresholdFee)) | |
388 | 388 | then afterPercentFee | |
389 | 389 | else beforePercentFee | |
390 | 390 | let fee = (minFee + fraction(amount, percent, PERCENT_FACTOR)) | |
391 | 391 | let err2 = _validateInt(amount, (fee + 1), MAX_INT, "lockTokens: fee more than amount") | |
392 | 392 | if ((err2 == err2)) | |
393 | 393 | then { | |
394 | 394 | let $t01184312248 = if ((referrer_ != "")) | |
395 | 395 | then { | |
396 | 396 | let referrer = addressFromStringValue(referrer_) | |
397 | 397 | let referrerFeeAmount = fraction(_loadReferrerFeePercent(executionChainId_, referrer), fee, PERCENT_FACTOR) | |
398 | 398 | $Tuple2(referrerFeeAmount, [ScriptTransfer(referrer, referrerFeeAmount, assetId)]) | |
399 | 399 | } | |
400 | 400 | else $Tuple2(0, nil) | |
401 | 401 | let referrerFee = $t01184312248._1 | |
402 | 402 | let referrerActions = $t01184312248._2 | |
403 | 403 | let amountToSend = (amount - fee) | |
404 | 404 | let err3 = _validateInt(amountToSend, (gaslessReward_ + 1), MAX_INT, "lockTokens: reward more than amount") | |
405 | 405 | if ((err3 == err3)) | |
406 | 406 | then { | |
407 | 407 | let amountToFee = (fee - referrerFee) | |
408 | 408 | let normalizedAmount = _normalizeDecimals(amountToSend, assetDecimals, DECIMALS) | |
409 | 409 | let normalizedGasless = _normalizeDecimals(gaslessReward_, assetDecimals, DECIMALS) | |
410 | 410 | let invocation = invoke(_loadRootAdapter(), FUNC_MINT_TOKENS, [executionChainId_, executionAsset, normalizedAmount, recipient_, normalizedGasless], nil) | |
411 | 411 | if ((invocation == invocation)) | |
412 | - | then $Tuple2 | |
412 | + | then $Tuple2(((_saveFee(assetId, (_loadFee(assetId) + amountToFee)) ++ _saveBalance(assetId, (_loadBalance(assetId) + amountToSend))) ++ referrerActions), unit) | |
413 | 413 | else throw("Strict value is not equal to itself.") | |
414 | 414 | } | |
415 | 415 | else throw("Strict value is not equal to itself.") | |
416 | 416 | } | |
417 | 417 | else throw("Strict value is not equal to itself.") | |
418 | 418 | } | |
419 | 419 | else throw("Strict value is not equal to itself.") | |
420 | 420 | } | |
421 | 421 | else throw("Strict value is not equal to itself.") | |
422 | 422 | } | |
423 | 423 | ||
424 | 424 | ||
425 | 425 | ||
426 | 426 | @Callable(i) | |
427 | 427 | func releaseTokens (callerContract_,assetId_,amount_,recipient_,gaslessReward_,referrer_,referrerFee_) = { | |
428 | 428 | let amount = valueOrErrorMessage(parseInt(amount_), "releaseTokens: amount is not Int") | |
429 | 429 | let gaslessReward = valueOrErrorMessage(parseInt(gaslessReward_), "releaseTokens: gaslessReward is not Int") | |
430 | 430 | let referrerFee = valueOrErrorMessage(parseInt(referrerFee_), "releaseTokens: referrerFee is not Int") | |
431 | 431 | let err = if (if (if (if (if (if (if (if (_whenInitialized()) | |
432 | 432 | then _whenNotPaused() | |
433 | 433 | else false) | |
434 | 434 | then _validateAsset(assetId_, "releaseTokens: invalid asset id") | |
435 | 435 | else false) | |
436 | 436 | then _validateExecutor(i.caller, "releaseTokens: invalid executor") | |
437 | 437 | else false) | |
438 | 438 | then _validateCaller(callerContract_, "releaseTokens: invalid caller") | |
439 | 439 | else false) | |
440 | 440 | then _validateAddress(recipient_, "releaseTokens: invalid recipient address") | |
441 | 441 | else false) | |
442 | 442 | then _validateInt(amount, 0, MAX_INT, "releaseTokens: invalid amount") | |
443 | 443 | else false) | |
444 | 444 | then _validateInt(gaslessReward, 0, MAX_INT, "releaseTokens: invalid gaslessReward") | |
445 | 445 | else false) | |
446 | 446 | then _validateInt(referrerFee, 0, MAX_INT, "releaseTokens: invalid referrer fee") | |
447 | 447 | else false | |
448 | 448 | if ((err == err)) | |
449 | 449 | then { | |
450 | 450 | let assetId = fromBase58String(assetId_) | |
451 | 451 | let assetDecimals = _getDecimals(assetId_) | |
452 | 452 | let normalizedAmount = _normalizeDecimals(amount, DECIMALS, assetDecimals) | |
453 | 453 | let normalizedGasless = _normalizeDecimals(gaslessReward, DECIMALS, assetDecimals) | |
454 | 454 | let referrer = match addressFromString(referrer_) { | |
455 | 455 | case refererAddress: Address => | |
456 | 456 | let normalizedReferrerFee = _normalizeDecimals(referrerFee, DECIMALS, assetDecimals) | |
457 | 457 | $Tuple2(normalizedReferrerFee, [ScriptTransfer(refererAddress, normalizedReferrerFee, assetId)]) | |
458 | 458 | case _ => | |
459 | 459 | $Tuple2(0, nil) | |
460 | 460 | } | |
461 | 461 | let normalizedReferrerFee = referrer._1 | |
462 | 462 | let referrerActions = referrer._2 | |
463 | 463 | let actions = if (if ((normalizedGasless > 0)) | |
464 | 464 | then (addressFromStringValue(recipient_) != i.originCaller) | |
465 | 465 | else false) | |
466 | 466 | then [ScriptTransfer(addressFromStringValue(recipient_), (normalizedAmount - normalizedGasless), assetId), ScriptTransfer(i.originCaller, normalizedGasless, assetId)] | |
467 | 467 | else [ScriptTransfer(addressFromStringValue(recipient_), normalizedAmount, assetId)] | |
468 | 468 | $Tuple2(((_saveBalance(assetId, ((_loadBalance(assetId) - normalizedAmount) - normalizedReferrerFee)) ++ actions) ++ referrerActions), unit) | |
469 | 469 | } | |
470 | 470 | else throw("Strict value is not equal to itself.") | |
471 | 471 | } | |
472 | 472 | ||
473 | 473 | ||
474 | 474 | ||
475 | 475 | @Callable(i) | |
476 | 476 | func transferFee (executionChainId_,assetId_) = { | |
477 | 477 | let err = if (if (_whenInitialized()) | |
478 | 478 | then _whenNotPaused() | |
479 | 479 | else false) | |
480 | 480 | then _validateAsset(assetId_, "transferFee: invalid asset") | |
481 | 481 | else false | |
482 | 482 | if ((err == err)) | |
483 | 483 | then { | |
484 | 484 | let assetId = fromBase58String(assetId_) | |
485 | 485 | let binding = _loadBinding(executionChainId_, assetId) | |
486 | 486 | let executionAsset = binding._1 | |
487 | 487 | let enabled = binding._7 | |
488 | 488 | let err1 = if (_validateString(executionAsset, "transferFee: no such binding")) | |
489 | 489 | then _validateBool(enabled, true, "transferFee: token is disabled") | |
490 | 490 | else false | |
491 | 491 | if ((err1 == err1)) | |
492 | 492 | then $Tuple2((_saveFee(assetId, 0) ++ [ScriptTransfer(_loadFeeRecipient(), _loadFee(assetId), assetId)]), unit) | |
493 | 493 | else throw("Strict value is not equal to itself.") | |
494 | 494 | } | |
495 | 495 | else throw("Strict value is not equal to itself.") | |
496 | 496 | } | |
497 | 497 | ||
498 | 498 | ||
499 | 499 | ||
500 | 500 | @Callable(i) | |
501 | 501 | func updateCallerContract (callerContract_) = { | |
502 | 502 | let err = if (_onlyThisContract(i.caller)) | |
503 | 503 | then _whenInitialized() | |
504 | 504 | else false | |
505 | 505 | if ((err == err)) | |
506 | 506 | then $Tuple2(_saveCallerContract(callerContract_), unit) | |
507 | 507 | else throw("Strict value is not equal to itself.") | |
508 | 508 | } | |
509 | 509 | ||
510 | 510 | ||
511 | 511 | ||
512 | 512 | @Callable(i) | |
513 | 513 | func updateExecutionChain (executionChainId_,enabled_) = { | |
514 | 514 | let err = if (if (_onlyThisContract(i.caller)) | |
515 | 515 | then _whenInitialized() | |
516 | 516 | else false) | |
517 | 517 | then _validateInt(executionChainId_, 0, MAX_INT, "updateExecutionChain: invalid executionChainId") | |
518 | 518 | else false | |
519 | 519 | if ((err == err)) | |
520 | 520 | then $Tuple2(_saveChain(executionChainId_, enabled_), unit) | |
521 | 521 | else throw("Strict value is not equal to itself.") | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | ||
526 | 526 | @Callable(i) | |
527 | 527 | func updateFeeRecipient (feeRecipient_) = { | |
528 | 528 | let err = if (if (_onlyThisContract(i.caller)) | |
529 | 529 | then _whenInitialized() | |
530 | 530 | else false) | |
531 | 531 | then _validateAddress(feeRecipient_, "updateFeeRecipient: invalid feeRecipient") | |
532 | 532 | else false | |
533 | 533 | if ((err == err)) | |
534 | 534 | then $Tuple2(_saveFeeRecipient(addressFromStringValue(feeRecipient_)), unit) | |
535 | 535 | else throw("Strict value is not equal to itself.") | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | ||
540 | 540 | @Callable(i) | |
541 | 541 | func updateReferrer (executionChainId_,referrer_,fee_) = { | |
542 | 542 | let err = if (if (if (if (_onlyThisContract(i.caller)) | |
543 | 543 | then _whenInitialized() | |
544 | 544 | else false) | |
545 | 545 | then _validateChain(executionChainId_, "updateReferrer: invalid execution chain") | |
546 | 546 | else false) | |
547 | 547 | then _validateAddress(referrer_, "updateReferrer: invalid referrer") | |
548 | 548 | else false) | |
549 | 549 | then _validateInt(fee_, 0, MAX_REFERRER_FEE, "updateReferrer: invalid fee") | |
550 | 550 | else false | |
551 | 551 | if ((err == err)) | |
552 | 552 | then $Tuple2(_saveReferrerFeePercent(executionChainId_, addressFromStringValue(referrer_), fee_), unit) | |
553 | 553 | else throw("Strict value is not equal to itself.") | |
554 | 554 | } | |
555 | 555 | ||
556 | 556 | ||
557 | 557 | ||
558 | 558 | @Callable(i) | |
559 | 559 | func updateBindingInfo (executionChainId_,assetId_,executionAsset_,minAmount_,minFee_,thresholdFee_,beforePercentFee_,afterPercentFee_,enabled_) = { | |
560 | 560 | let err = if (if (if (if (if (if (if (if (_onlyThisContract(i.caller)) | |
561 | 561 | then _whenInitialized() | |
562 | 562 | else false) | |
563 | 563 | then _validateAsset(assetId_, "updateBindingInfo: invalid asset id") | |
564 | 564 | else false) | |
565 | 565 | then _validateInt(executionChainId_, 0, MAX_INT, "updateBindingInfo: invalid executionChainId") | |
566 | 566 | else false) | |
567 | 567 | then _validateInt(minAmount_, 0, MAX_INT, "updateBindingInfo: invalid minAmount") | |
568 | 568 | else false) | |
569 | 569 | then _validateInt(minFee_, 0, MAX_INT, "updateBindingInfo: invalid minFee") | |
570 | 570 | else false) | |
571 | 571 | then _validateInt(thresholdFee_, 0, MAX_INT, "updateBindingInfo: invalid thresholdFee") | |
572 | 572 | else false) | |
573 | 573 | then _validateInt(beforePercentFee_, 0, MAX_INT, "updateBindingInfo: invalid beforePercentFee") | |
574 | 574 | else false) | |
575 | 575 | then _validateInt(afterPercentFee_, 0, MAX_INT, "updateBindingInfo: invalid afterPercentFee") | |
576 | 576 | else false | |
577 | 577 | if ((err == err)) | |
578 | 578 | then { | |
579 | 579 | let binding = $Tuple7(executionAsset_, minAmount_, minFee_, thresholdFee_, beforePercentFee_, afterPercentFee_, enabled_) | |
580 | 580 | $Tuple2(_saveBinding(executionChainId_, fromBase58String(assetId_), binding), unit) | |
581 | 581 | } | |
582 | 582 | else throw("Strict value is not equal to itself.") | |
583 | 583 | } | |
584 | 584 | ||
585 | 585 | ||
586 | 586 | ||
587 | 587 | @Callable(i) | |
588 | 588 | func pause () = { | |
589 | 589 | let err = if (if (_onlyPauser(i.caller)) | |
590 | 590 | then _whenInitialized() | |
591 | 591 | else false) | |
592 | 592 | then _whenNotPaused() | |
593 | 593 | else false | |
594 | 594 | if ((err == err)) | |
595 | 595 | then $Tuple2(_savePause(true), unit) | |
596 | 596 | else throw("Strict value is not equal to itself.") | |
597 | 597 | } | |
598 | 598 | ||
599 | 599 | ||
600 | 600 | ||
601 | 601 | @Callable(i) | |
602 | 602 | func unpause () = { | |
603 | 603 | let err = if (if (_onlyPauser(i.caller)) | |
604 | 604 | then _whenInitialized() | |
605 | 605 | else false) | |
606 | 606 | then _whenPaused() | |
607 | 607 | else false | |
608 | 608 | if ((err == err)) | |
609 | 609 | then $Tuple2(_savePause(false), unit) | |
610 | 610 | else throw("Strict value is not equal to itself.") | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | ||
615 | 615 | @Callable(i) | |
616 | 616 | func updatePauser (pauser_) = { | |
617 | 617 | let err = if (if (_onlyThisContract(i.caller)) | |
618 | 618 | then _whenInitialized() | |
619 | 619 | else false) | |
620 | 620 | then _validateAddress(pauser_, "updatePauser: invalid pauser") | |
621 | 621 | else false | |
622 | 622 | if ((err == err)) | |
623 | 623 | then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit) | |
624 | 624 | else throw("Strict value is not equal to itself.") | |
625 | 625 | } | |
626 | 626 | ||
627 | 627 | ||
628 | 628 | ||
629 | 629 | @Callable(i) | |
630 | 630 | func setMultisig (multisig_) = { | |
631 | 631 | let err = if (_onlyThisContract(i.caller)) | |
632 | 632 | then _validateAddress(multisig_, "setMultisig: invalid multisig") | |
633 | 633 | else false | |
634 | 634 | if ((err == err)) | |
635 | 635 | then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit) | |
636 | 636 | else throw("Strict value is not equal to itself.") | |
637 | 637 | } | |
638 | 638 | ||
639 | 639 | ||
640 | 640 | @Verifier(tx) | |
641 | 641 | func verify () = match getString(KEY_MULTISIG) { | |
642 | 642 | case multisig: String => | |
643 | 643 | valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false) | |
644 | 644 | case _ => | |
645 | 645 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
646 | 646 | } | |
647 | 647 |
github/deemru/w8io/169f3d6 66.06 ms ◑