tx · JjJ2gsEq3TGnMDy5G9vSpyKrHc43JPzes8CCUEq3y9D

3N3LYhWVMMwUSDzVmNKQK3dDKFvG1sT6PX8:  -0.01200000 Waves

2024.03.22 15:11 [3029223] smart account 3N3LYhWVMMwUSDzVmNKQK3dDKFvG1sT6PX8 > SELF 0.00000000 Waves

{ "type": 13, "id": "JjJ2gsEq3TGnMDy5G9vSpyKrHc43JPzes8CCUEq3y9D", "fee": 1200000, "feeAssetId": null, "timestamp": 1711109388541, "version": 2, "chainId": 84, "sender": "3N3LYhWVMMwUSDzVmNKQK3dDKFvG1sT6PX8", "senderPublicKey": "EFS9Kr4PQgyRsCT4tt2skry6S4ofTwzRJKormQc5F5aC", "proofs": [ "YJTEKJsg6A15p5ooH6ombCAhUV5KX6eqRxLCLnnBuosDQrdhWHBGYkrTQfaZ5FHCukk61mvUNWSqpRRaCw26hJs" ], "script": "base64:BwIlCAISBgoEAQgICBIAEgMKAQgSABIAEgASABIAEgMKAQgSAwoBCCwACVNFUEFSQVRPUgICX18ADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwAIS0VZX0lOSVQCBElOSVQACktFWV9QQVVTRUQCBlBBVVNFRAAKS0VZX1BBVVNFUgIGUEFVU0VSAAlLRVlfQ0hBSU4CBUNIQUlOABRLRVlfR0FURVdBWV9DT05UUkFDVAIQR0FURVdBWV9DT05UUkFDVAATS0VZX1NXQVZFU19DT05UUkFDVAIPU1dBVkVTX0NPTlRSQUNUAAxLRVlfUkVTRVJWRVMCCFJFU0VSVkVTAAxGVU5DX0RFUE9TSVQCB2RlcG9zaXQABVdBVkVTAgVXQVZFUwAOV0FWRVNfREVDSU1BTFMACAAMREVYX0RFQ0lNQUxTAAgAB01BWF9JTlQA//////////9/ARBfdmFsaWRhdGVBZGRyZXNzAghhZGRyZXNzXwRlcnJfBAckbWF0Y2gwCQCmCAEFCGFkZHJlc3NfAwkAAQIFByRtYXRjaDACB0FkZHJlc3MEAWEFBy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NDb250cmFjdAEIBQFpBmNhbGxlcgkBEF93aGVuSW5pdGlhbGl6ZWQABwkBEF92YWxpZGF0ZUFkZHJlc3MCBQdwYXVzZXJfAhx1cGRhdGVQYXVzZXI6IGludmFsaWQgcGF1c2VyBwMJAAACBQNlcnIFA2VycgkAlAoCCQELX3NhdmVQYXVzZXIBCQERQGV4dHJOYXRpdmUoMTA2MikBBQdwYXVzZXJfBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBC3NldE11bHRpc2lnAQltdWx0aXNpZ18EA2VycgMJARFfb25seVRoaXNDb250cmFjdAEIBQFpBmNhbGxlcgkBEF92YWxpZGF0ZUFkZHJlc3MCBQltdWx0aXNpZ18CHXNldE11bHRpc2lnOiBpbnZhbGlkIG11bHRpc2lnBwMJAAACBQNlcnIFA2VycgkAlAoCCQENX3NhdmVNdWx0aXNpZwEJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCW11bHRpc2lnXwUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAJAKIIAQUMS0VZX01VTFRJU0lHAwkAAQIFByRtYXRjaDACBlN0cmluZwQIbXVsdGlzaWcFByRtYXRjaDAJAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQUIbXVsdGlzaWcJALkJAgkAzAgCBQpLRVlfU1RBVFVTCQDMCAIJAKUIAQUEdGhpcwkAzAgCCQDYBAEIBQJ0eAJpZAUDbmlsBQlTRVBBUkFUT1IHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V52hcYGQ==", "height": 3029223, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CGFztBDyWMPF6huiE4JpS2WeLofSYCFkc97TVjboWiQs Next: none Diff:
OldNewDifferences
243243 let err1 = _validateInt(amount, 1, MAX_INT, "deposit: invalid payment amount")
244244 if ((err1 == err1))
245245 then {
246- let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, caller, _loadChainId(), asset, amount], nil)
246+ let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, caller, toString(_loadChainId()), asset, toString(amount)], nil)
247247 if ((invocation == invocation))
248248 then {
249249 let staking = if ((asset == WAVES))
289289 let err1 = _validateInt(amount, 1, MAX_INT, "depositTo: invalid payment amount")
290290 if ((err1 == err1))
291291 then {
292- let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, to_, _loadChainId(), asset, amount], nil)
292+ let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, to_, toString(_loadChainId()), asset, toString(amount)], nil)
293293 if ((invocation == invocation))
294294 then {
295295 let staking = if ((asset == WAVES))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEPARATOR = "__"
55
66 let KEY_MULTISIG = "MULTISIG"
77
88 let KEY_STATUS = "STATUS"
99
1010 let KEY_INIT = "INIT"
1111
1212 let KEY_PAUSED = "PAUSED"
1313
1414 let KEY_PAUSER = "PAUSER"
1515
1616 let KEY_CHAIN = "CHAIN"
1717
1818 let KEY_GATEWAY_CONTRACT = "GATEWAY_CONTRACT"
1919
2020 let KEY_SWAVES_CONTRACT = "SWAVES_CONTRACT"
2121
2222 let KEY_RESERVES = "RESERVES"
2323
2424 let FUNC_DEPOSIT = "deposit"
2525
2626 let WAVES = "WAVES"
2727
2828 let WAVES_DECIMALS = 8
2929
3030 let DEX_DECIMALS = 8
3131
3232 let MAX_INT = 9223372036854775807
3333
3434 func _validateAddress (address_,err_) = match addressFromString(address_) {
3535 case a: Address =>
3636 true
3737 case _ =>
3838 throw(err_)
3939 }
4040
4141
4242 func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_))
4343 then true
4444 else (val_ > upperBoundary_))
4545 then throw(err_)
4646 else true
4747
4848
4949 func _validateString (val_,err_) = if (if ((0 >= size(val_)))
5050 then true
5151 else contains(val_, SEPARATOR))
5252 then throw(err_)
5353 else true
5454
5555
5656 func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_))
5757 then throw(err_)
5858 else true
5959
6060
6161 func _getDecimals (assetId_) = if ((assetId_ == WAVES))
6262 then WAVES_DECIMALS
6363 else match assetInfo(fromBase58String(assetId_)) {
6464 case a: Asset =>
6565 a.decimals
6666 case _ =>
6767 throw(("_getDecimals: no asset=" + assetId_))
6868 }
6969
7070
7171 func _normalizeDecimals (amount_,sourceDecimals_,targetDecimals_) = if ((sourceDecimals_ >= targetDecimals_))
7272 then (amount_ / pow(10, 0, (sourceDecimals_ - targetDecimals_), 0, 0, DOWN))
7373 else (amount_ * pow(10, 0, (targetDecimals_ - sourceDecimals_), 0, 0, DOWN))
7474
7575
7676 func _loadInit () = match getBoolean(KEY_INIT) {
7777 case a: Boolean =>
7878 a
7979 case _ =>
8080 false
8181 }
8282
8383
8484 func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
8585
8686
8787 func _loadPause () = match getBoolean(KEY_PAUSED) {
8888 case a: Boolean =>
8989 a
9090 case _ =>
9191 false
9292 }
9393
9494
9595 func _savePause (isPaused_) = [BooleanEntry(KEY_PAUSED, isPaused_)]
9696
9797
9898 func _loadPauser () = match getString(KEY_PAUSER) {
9999 case a: String =>
100100 addressFromStringValue(a)
101101 case _ =>
102102 Address(base58'')
103103 }
104104
105105
106106 func _savePauser (pauser_) = [StringEntry(KEY_PAUSER, toString(pauser_))]
107107
108108
109109 func _loadMultisig () = match getString(KEY_MULTISIG) {
110110 case a: String =>
111111 addressFromStringValue(a)
112112 case _ =>
113113 Address(base58'')
114114 }
115115
116116
117117 func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
118118
119119
120120 func _loadChainId () = match getInteger(KEY_CHAIN) {
121121 case a: Int =>
122122 a
123123 case _ =>
124124 0
125125 }
126126
127127
128128 func _saveChainId (chainId_) = [IntegerEntry(KEY_CHAIN, chainId_)]
129129
130130
131131 func _loadGatewayContract () = match getString(KEY_GATEWAY_CONTRACT) {
132132 case a: String =>
133133 addressFromStringValue(a)
134134 case _ =>
135135 Address(base58'')
136136 }
137137
138138
139139 func _saveGatewayContract (gatewayContract_) = [StringEntry(KEY_GATEWAY_CONTRACT, toString(gatewayContract_))]
140140
141141
142142 func _loadSWavesContract () = match getString(KEY_SWAVES_CONTRACT) {
143143 case a: String =>
144144 addressFromStringValue(a)
145145 case _ =>
146146 Address(base58'')
147147 }
148148
149149
150150 func _saveSWavesContract (sWavesContract_) = [StringEntry(KEY_SWAVES_CONTRACT, toString(sWavesContract_))]
151151
152152
153153 func _loadReserves (asset_) = match getInteger(makeString([KEY_RESERVES, asset_], SEPARATOR)) {
154154 case a: Int =>
155155 a
156156 case _ =>
157157 0
158158 }
159159
160160
161161 func _saveReserves (asset_,reserves_) = [IntegerEntry(makeString([KEY_RESERVES, asset_], SEPARATOR), reserves_)]
162162
163163
164164 func _onlyThisContract (caller_) = if ((caller_ != this))
165165 then throw("_onlyThisContract: revert")
166166 else true
167167
168168
169169 func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
170170 then throw("_whenMultisigSet: revert")
171171 else true
172172
173173
174174 func _whenNotInitialized () = if (_loadInit())
175175 then throw("_whenNotInitialized: revert")
176176 else true
177177
178178
179179 func _whenInitialized () = if (!(_loadInit()))
180180 then throw("_whenInitialized: revert")
181181 else true
182182
183183
184184 func _whenNotPaused () = if (_loadPause())
185185 then throw("_whenNotPaused: revert")
186186 else true
187187
188188
189189 func _whenPaused () = if (!(_loadPause()))
190190 then throw("_whenPaused: revert")
191191 else true
192192
193193
194194 func _onlyPauser (caller_) = if ((caller_ != _loadPauser()))
195195 then throw("_onlyPauser: revert")
196196 else true
197197
198198
199199 @Callable(i)
200200 func init (chainId_,pauser_,gatewayContract_,sWavesContract_) = {
201201 let err = if (if (if (if (if (if (_onlyThisContract(i.caller))
202202 then _whenNotInitialized()
203203 else false)
204204 then _whenMultisigSet()
205205 else false)
206206 then _validateInt(chainId_, 0, MAX_INT, "init: invalid chainId")
207207 else false)
208208 then _validateAddress(pauser_, "init: invalid pauser")
209209 else false)
210210 then _validateAddress(gatewayContract_, "init: invalid gatewayContract")
211211 else false)
212212 then _validateAddress(sWavesContract_, "init: invalid sWavesContract")
213213 else false
214214 if ((err == err))
215215 then $Tuple2(((((_saveInit(true) ++ _saveChainId(chainId_)) ++ _savePauser(addressFromStringValue(pauser_))) ++ _saveGatewayContract(addressFromStringValue(gatewayContract_))) ++ _saveSWavesContract(addressFromStringValue(sWavesContract_))), unit)
216216 else throw("Strict value is not equal to itself.")
217217 }
218218
219219
220220
221221 @Callable(i)
222222 func deposit () = {
223223 let err = if (if (if (_whenInitialized())
224224 then _whenNotPaused()
225225 else false)
226226 then _validatePaymentsSize(i.payments, 1, "deposit: no payment")
227227 else false)
228228 then _validateInt(i.payments[0].amount, 0, MAX_INT, "deposit: negative payment")
229229 else false
230230 if ((err == err))
231231 then {
232232 let caller = toString(i.caller)
233233 let asset = match i.payments[0].assetId {
234234 case a: ByteVector =>
235235 toBase58String(a)
236236 case _: Unit =>
237237 WAVES
238238 case _ =>
239239 throw("Match error")
240240 }
241241 let assetDecimals = _getDecimals(asset)
242242 let amount = _normalizeDecimals(i.payments[0].amount, assetDecimals, DEX_DECIMALS)
243243 let err1 = _validateInt(amount, 1, MAX_INT, "deposit: invalid payment amount")
244244 if ((err1 == err1))
245245 then {
246- let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, caller, _loadChainId(), asset, amount], nil)
246+ let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, caller, toString(_loadChainId()), asset, toString(amount)], nil)
247247 if ((invocation == invocation))
248248 then {
249249 let staking = if ((asset == WAVES))
250250 then invoke(_loadSWavesContract(), FUNC_DEPOSIT, nil, [AttachedPayment(unit, i.payments[0].amount)])
251251 else unit
252252 if ((staking == staking))
253253 then $Tuple2(_saveReserves(asset, (_loadReserves(asset) + amount)), unit)
254254 else throw("Strict value is not equal to itself.")
255255 }
256256 else throw("Strict value is not equal to itself.")
257257 }
258258 else throw("Strict value is not equal to itself.")
259259 }
260260 else throw("Strict value is not equal to itself.")
261261 }
262262
263263
264264
265265 @Callable(i)
266266 func depositTo (to_) = {
267267 let err = if (if (if (if (_whenInitialized())
268268 then _whenNotPaused()
269269 else false)
270270 then _validatePaymentsSize(i.payments, 1, "depositTo: no payment")
271271 else false)
272272 then _validateInt(i.payments[0].amount, 0, MAX_INT, "depositTo: negative payment")
273273 else false)
274274 then _validateString(to_, "depositTo: invalid to")
275275 else false
276276 if ((err == err))
277277 then {
278278 let caller = toString(i.caller)
279279 let asset = match i.payments[0].assetId {
280280 case a: ByteVector =>
281281 toBase58String(a)
282282 case _: Unit =>
283283 WAVES
284284 case _ =>
285285 throw("Match error")
286286 }
287287 let assetDecimals = _getDecimals(asset)
288288 let amount = _normalizeDecimals(i.payments[0].amount, assetDecimals, DEX_DECIMALS)
289289 let err1 = _validateInt(amount, 1, MAX_INT, "depositTo: invalid payment amount")
290290 if ((err1 == err1))
291291 then {
292- let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, to_, _loadChainId(), asset, amount], nil)
292+ let invocation = invoke(_loadGatewayContract(), FUNC_DEPOSIT, [toString(this), caller, to_, toString(_loadChainId()), asset, toString(amount)], nil)
293293 if ((invocation == invocation))
294294 then {
295295 let staking = if ((asset == WAVES))
296296 then invoke(_loadSWavesContract(), FUNC_DEPOSIT, nil, [AttachedPayment(unit, i.payments[0].amount)])
297297 else unit
298298 if ((staking == staking))
299299 then $Tuple2(_saveReserves(asset, (_loadReserves(asset) + amount)), unit)
300300 else throw("Strict value is not equal to itself.")
301301 }
302302 else throw("Strict value is not equal to itself.")
303303 }
304304 else throw("Strict value is not equal to itself.")
305305 }
306306 else throw("Strict value is not equal to itself.")
307307 }
308308
309309
310310
311311 @Callable(i)
312312 func withdraw () = $Tuple2(nil, unit)
313313
314314
315315
316316 @Callable(i)
317317 func requestWithdrawal () = $Tuple2(nil, unit)
318318
319319
320320
321321 @Callable(i)
322322 func executeWithdrawal () = $Tuple2(nil, unit)
323323
324324
325325
326326 @Callable(i)
327327 func pause () = {
328328 let err = if (if (_onlyPauser(i.caller))
329329 then _whenInitialized()
330330 else false)
331331 then _whenNotPaused()
332332 else false
333333 if ((err == err))
334334 then $Tuple2(_savePause(true), unit)
335335 else throw("Strict value is not equal to itself.")
336336 }
337337
338338
339339
340340 @Callable(i)
341341 func unpause () = {
342342 let err = if (if (_onlyPauser(i.caller))
343343 then _whenInitialized()
344344 else false)
345345 then _whenPaused()
346346 else false
347347 if ((err == err))
348348 then $Tuple2(_savePause(false), unit)
349349 else throw("Strict value is not equal to itself.")
350350 }
351351
352352
353353
354354 @Callable(i)
355355 func updatePauser (pauser_) = {
356356 let err = if (if (_onlyThisContract(i.caller))
357357 then _whenInitialized()
358358 else false)
359359 then _validateAddress(pauser_, "updatePauser: invalid pauser")
360360 else false
361361 if ((err == err))
362362 then $Tuple2(_savePauser(addressFromStringValue(pauser_)), unit)
363363 else throw("Strict value is not equal to itself.")
364364 }
365365
366366
367367
368368 @Callable(i)
369369 func setMultisig (multisig_) = {
370370 let err = if (_onlyThisContract(i.caller))
371371 then _validateAddress(multisig_, "setMultisig: invalid multisig")
372372 else false
373373 if ((err == err))
374374 then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
375375 else throw("Strict value is not equal to itself.")
376376 }
377377
378378
379379 @Verifier(tx)
380380 func verify () = match getString(KEY_MULTISIG) {
381381 case multisig: String =>
382382 valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
383383 case _ =>
384384 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
385385 }
386386

github/deemru/w8io/169f3d6 
38.00 ms