tx · 64f5zkJaF24yPCKzSHp1E3VQGNNzq32NcqAteVbLt1FA

3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa:  -0.01400000 Waves

2024.12.17 12:56 [3418411] smart account 3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa > SELF 0.00000000 Waves

{ "type": 13, "id": "64f5zkJaF24yPCKzSHp1E3VQGNNzq32NcqAteVbLt1FA", "fee": 1400000, "feeAssetId": null, "timestamp": 1734429290915, "version": 2, "chainId": 84, "sender": "3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa", "senderPublicKey": "tinwq3CCsobvKT9fhHjTjbxXQdTDmXW9KtgPvR94m1H", "proofs": [ "44FwMi6Zc8iefN8aYmNCVqDve5tdeevCeo1QmJhAgrTwtSrEFGUzkqF4onaqEpW1nvd99pf6KbPSqksuoUTvDNnx" ], "script": "base64:BwJFCAISBAoCCAgSBQoDCAgIEgcKBQgICAgIEgUKAwgICBIJCgcICAgICAgIEgUKAwgICBIGCgQICAgIEgUKAwgICBIDCgEIIQAJU0VQQVJBVE9SAgJfXwAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAUS0VZX0dBVEVXQVlfQ09OVFJBQ1QCEEdBVEVXQVlfQ09OVFJBQ1QAFEtFWV9NQVRDSEVSX0NPTlRSQUNUAhBNQVRDSEVSX0NPTlRSQUNUABBLRVlfVVNFUl9CQUxBTkNFAgxVU0VSX0JBTEFOQ0UAEUtFWV9UT1RBTF9CQUxBTkNFAg1UT1RBTF9CQUxBTkNFAAtTUE9UX1dBTExFVAIEU1BPVAAVU1RBS0lOR19SRVdBUkRfV0FMTEVUAg5TVEFLSU5HX1JFV0FSRAALWkVST19CSUdJTlQJALYCAQAAARBfdmFsaWRhdGVBZGRyZXNzAghhZGRyZXNzXwRlcnJfBAckbWF0Y2gwCQCmCAEFCGFkZHJlc3NfAwkAAQIFByRtYXRjaDAC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1IHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V57unFRA==", "height": 3418411, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GvhZNZwcJLxtzaYbjVhyWXqoS27XNkDXay2gKpT7yPTv Next: none Diff:
OldNewDifferences
271271 let userSourceBalance = _loadUserBalance(from_, wallet_, currency_)
272272 let userTargetBalance = _loadUserBalance(to_, wallet_, currency_)
273273 let dexTargetBalance = _loadUserBalance(dex_, wallet_, currency_)
274- let newUserSourceBalance = ((userSourceBalance - amount) - fee)
275- let newUserTargetBalance = (userTargetBalance + amount)
274+ let newUserSourceBalance = (userSourceBalance - amount)
275+ let newUserTargetBalance = ((userTargetBalance + amount) - fee)
276276 let newDexTargetBalance = (dexTargetBalance + fee)
277277 let err1 = _validateBigInt(newUserSourceBalance, ZERO_BIGINT, "externalTransfer: insufficient amount")
278278 if ((err1 == err1))
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_GATEWAY_CONTRACT = "GATEWAY_CONTRACT"
1313
1414 let KEY_MATCHER_CONTRACT = "MATCHER_CONTRACT"
1515
1616 let KEY_USER_BALANCE = "USER_BALANCE"
1717
1818 let KEY_TOTAL_BALANCE = "TOTAL_BALANCE"
1919
2020 let SPOT_WALLET = "SPOT"
2121
2222 let STAKING_REWARD_WALLET = "STAKING_REWARD"
2323
2424 let ZERO_BIGINT = toBigInt(0)
2525
2626 func _validateAddress (address_,err_) = match addressFromString(address_) {
2727 case a: Address =>
2828 true
2929 case _ =>
3030 throw(err_)
3131 }
3232
3333
3434 func _validateBigInt (val_,lowerBoundary_,err_) = if ((lowerBoundary_ > val_))
3535 then throw(err_)
3636 else true
3737
3838
3939 func _validateString (val_,err_) = if (if ((0 >= size(val_)))
4040 then true
4141 else contains(val_, SEPARATOR))
4242 then throw(err_)
4343 else true
4444
4545
4646 func _validateStringEqual (val1_,val2_,err_) = if ((val1_ != val2_))
4747 then throw(err_)
4848 else true
4949
5050
5151 func _loadInit () = match getBoolean(KEY_INIT) {
5252 case a: Boolean =>
5353 a
5454 case _ =>
5555 false
5656 }
5757
5858
5959 func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
6060
6161
6262 func _loadMultisig () = match getString(KEY_MULTISIG) {
6363 case a: String =>
6464 addressFromStringValue(a)
6565 case _ =>
6666 Address(base58'')
6767 }
6868
6969
7070 func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
7171
7272
7373 func _loadGatewayContract () = match getString(KEY_GATEWAY_CONTRACT) {
7474 case a: String =>
7575 addressFromStringValue(a)
7676 case _ =>
7777 Address(base58'')
7878 }
7979
8080
8181 func _saveGatewayContract (gatewayContract_) = [StringEntry(KEY_GATEWAY_CONTRACT, toString(gatewayContract_))]
8282
8383
8484 func _loadMatcherContract () = match getString(KEY_MATCHER_CONTRACT) {
8585 case a: String =>
8686 addressFromStringValue(a)
8787 case _ =>
8888 Address(base58'')
8989 }
9090
9191
9292 func _saveMatcherContract (matcherContract_) = [StringEntry(KEY_MATCHER_CONTRACT, toString(matcherContract_))]
9393
9494
9595 func _loadUserBalance (user_,wallet_,currency_) = match getString(makeString([KEY_USER_BALANCE, user_, wallet_, currency_], SEPARATOR)) {
9696 case a: String =>
9797 parseBigIntValue(a)
9898 case _ =>
9999 ZERO_BIGINT
100100 }
101101
102102
103103 func _saveUserBalance (user_,wallet_,currency_,balance_) = [StringEntry(makeString([KEY_USER_BALANCE, user_, wallet_, currency_], SEPARATOR), toString(balance_))]
104104
105105
106106 func _loadTotalBalance (currency_) = match getString(makeString([KEY_TOTAL_BALANCE, currency_], SEPARATOR)) {
107107 case a: String =>
108108 parseBigIntValue(a)
109109 case _ =>
110110 ZERO_BIGINT
111111 }
112112
113113
114114 func _saveTotalBalance (currency_,balance_) = [StringEntry(makeString([KEY_TOTAL_BALANCE, currency_], SEPARATOR), toString(balance_))]
115115
116116
117117 func _onlyThisContract (caller_) = if ((caller_ != this))
118118 then throw("_onlyThisContract: revert")
119119 else true
120120
121121
122122 func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
123123 then throw("_whenMultisigSet: revert")
124124 else true
125125
126126
127127 func _whenNotInitialized () = if (_loadInit())
128128 then throw("_whenNotInitialized: revert")
129129 else true
130130
131131
132132 func _whenInitialized () = if (!(_loadInit()))
133133 then throw("_whenInitialized: revert")
134134 else true
135135
136136
137137 func _validateGateway (caller,err_) = if ((_loadGatewayContract() != caller))
138138 then throw(err_)
139139 else true
140140
141141
142142 func _validateMatcher (caller,err_) = if ((_loadMatcherContract() != caller))
143143 then throw(err_)
144144 else true
145145
146146
147147 @Callable(i)
148148 func init (gatewayContract_,matcherContract_) = {
149149 let err = if (if (if (if (_onlyThisContract(i.caller))
150150 then _whenNotInitialized()
151151 else false)
152152 then _whenMultisigSet()
153153 else false)
154154 then _validateAddress(gatewayContract_, "init: invalid gatewayContract")
155155 else false)
156156 then _validateAddress(matcherContract_, "init: invalid matcherContract")
157157 else false
158158 if ((err == err))
159159 then $Tuple2(((_saveInit(true) ++ _saveGatewayContract(addressFromStringValue(gatewayContract_))) ++ _saveMatcherContract(addressFromStringValue(matcherContract_))), unit)
160160 else throw("Strict value is not equal to itself.")
161161 }
162162
163163
164164
165165 @Callable(i)
166166 func deposit (user_,currency_,amount_) = {
167167 let amount = valueOrErrorMessage(parseBigInt(amount_), "deposit: amount not int")
168168 let err = if (if (if (if (_whenInitialized())
169169 then _validateString(user_, "deposit: invalid user")
170170 else false)
171171 then _validateString(currency_, "deposit: invalid currency")
172172 else false)
173173 then _validateBigInt(amount, ZERO_BIGINT, "deposit: invalid amount")
174174 else false)
175175 then _validateGateway(i.caller, "deposit: invalid caller")
176176 else false
177177 if ((err == err))
178178 then {
179179 let userBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
180180 $Tuple2((_saveUserBalance(user_, SPOT_WALLET, currency_, (userBalance + amount)) ++ _saveTotalBalance(currency_, (_loadTotalBalance(currency_) + amount))), unit)
181181 }
182182 else throw("Strict value is not equal to itself.")
183183 }
184184
185185
186186
187187 @Callable(i)
188188 func internalTransfer (user_,sourceWallet_,targetWallet_,currency_,amount_) = {
189189 let amount = valueOrErrorMessage(parseBigInt(amount_), "internalTransfer: amount not int")
190190 let err = if (if (if (if (if (if (_whenInitialized())
191191 then _validateString(user_, "internalTransfer: invalid user")
192192 else false)
193193 then _validateString(sourceWallet_, "internalTransfer: invalid sourceWallet")
194194 else false)
195195 then _validateString(targetWallet_, "internalTransfer: invalid targetWallet")
196196 else false)
197197 then _validateString(currency_, "internalTransfer: invalid currency")
198198 else false)
199199 then _validateBigInt(amount, ZERO_BIGINT, "internalTransfer: invalid amount")
200200 else false)
201201 then _validateMatcher(i.caller, "internalTransfer: invalid matcher caller")
202202 else false
203203 if ((err == err))
204204 then {
205205 let userSourceBalance = _loadUserBalance(user_, sourceWallet_, currency_)
206206 let userTargetBalance = _loadUserBalance(user_, targetWallet_, currency_)
207207 let newUserSourceBalance = (userSourceBalance - amount)
208208 let newUserTargetBalance = (userTargetBalance + amount)
209209 let err1 = _validateBigInt(newUserSourceBalance, ZERO_BIGINT, "internalTransfer: insufficient amount")
210210 if ((err1 == err1))
211211 then $Tuple2((_saveUserBalance(user_, sourceWallet_, currency_, newUserSourceBalance) ++ _saveUserBalance(user_, targetWallet_, currency_, newUserTargetBalance)), unit)
212212 else throw("Strict value is not equal to itself.")
213213 }
214214 else throw("Strict value is not equal to itself.")
215215 }
216216
217217
218218
219219 @Callable(i)
220220 func withdraw (user_,currency_,amount_) = {
221221 let amount = valueOrErrorMessage(parseBigInt(amount_), "withdraw: amount not int")
222222 let err = if (if (if (if (_whenInitialized())
223223 then _validateString(user_, "withdraw: invalid user")
224224 else false)
225225 then _validateString(currency_, "withdraw: invalid currency")
226226 else false)
227227 then _validateBigInt(amount, ZERO_BIGINT, "withdraw: invalid amount")
228228 else false)
229229 then _validateGateway(i.caller, "withdraw: invalid caller")
230230 else false
231231 if ((err == err))
232232 then {
233233 let userBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
234234 let newUserBalance = (userBalance - amount)
235235 let newTotalBalance = (_loadTotalBalance(currency_) - amount)
236236 let err1 = if (_validateBigInt(newUserBalance, ZERO_BIGINT, "withdraw: insufficient amount"))
237237 then _validateBigInt(newTotalBalance, ZERO_BIGINT, "withdraw: negative total balance")
238238 else false
239239 if ((err1 == err1))
240240 then $Tuple2((_saveUserBalance(user_, SPOT_WALLET, currency_, newUserBalance) ++ _saveTotalBalance(currency_, newTotalBalance)), unit)
241241 else throw("Strict value is not equal to itself.")
242242 }
243243 else throw("Strict value is not equal to itself.")
244244 }
245245
246246
247247
248248 @Callable(i)
249249 func externalTransfer (wallet_,currency_,from_,to_,amount_,fee_,dex_) = {
250250 let amount = valueOrErrorMessage(parseBigInt(amount_), "externalTransfer: amount not int")
251251 let fee = valueOrErrorMessage(parseBigInt(fee_), "externalTransfer: fee not int")
252252 let err = if (if (if (if (if (if (if (if (_whenInitialized())
253253 then _validateString(wallet_, "externalTransfer: invalid wallet")
254254 else false)
255255 then _validateString(currency_, "externalTransfer: invalid currency")
256256 else false)
257257 then _validateString(from_, "externalTransfer: invalid from")
258258 else false)
259259 then _validateString(to_, "externalTransfer: invalid to")
260260 else false)
261261 then _validateBigInt(amount, ZERO_BIGINT, "externalTransfer: invalid amount")
262262 else false)
263263 then _validateBigInt(fee, ZERO_BIGINT, "externalTransfer: invalid fee")
264264 else false)
265265 then _validateString(dex_, "externalTransfer: invalid dex")
266266 else false)
267267 then _validateMatcher(i.caller, "externalTransfer: invalid matcher caller")
268268 else false
269269 if ((err == err))
270270 then {
271271 let userSourceBalance = _loadUserBalance(from_, wallet_, currency_)
272272 let userTargetBalance = _loadUserBalance(to_, wallet_, currency_)
273273 let dexTargetBalance = _loadUserBalance(dex_, wallet_, currency_)
274- let newUserSourceBalance = ((userSourceBalance - amount) - fee)
275- let newUserTargetBalance = (userTargetBalance + amount)
274+ let newUserSourceBalance = (userSourceBalance - amount)
275+ let newUserTargetBalance = ((userTargetBalance + amount) - fee)
276276 let newDexTargetBalance = (dexTargetBalance + fee)
277277 let err1 = _validateBigInt(newUserSourceBalance, ZERO_BIGINT, "externalTransfer: insufficient amount")
278278 if ((err1 == err1))
279279 then $Tuple2(((_saveUserBalance(from_, wallet_, currency_, newUserSourceBalance) ++ _saveUserBalance(to_, wallet_, currency_, newUserTargetBalance)) ++ _saveUserBalance(dex_, wallet_, currency_, newDexTargetBalance)), unit)
280280 else throw("Strict value is not equal to itself.")
281281 }
282282 else throw("Strict value is not equal to itself.")
283283 }
284284
285285
286286
287287 @Callable(i)
288288 func depositStakingReward (dex_,currency_,amount_) = {
289289 let amount = valueOrErrorMessage(parseBigInt(amount_), "depositStakingReward: amount not int")
290290 let err = if (if (if (if (_whenInitialized())
291291 then _validateString(dex_, "depositStakingReward: invalid dex")
292292 else false)
293293 then _validateString(currency_, "depositStakingReward: invalid currency")
294294 else false)
295295 then _validateBigInt(amount, ZERO_BIGINT, "depositStakingReward: invalid amount")
296296 else false)
297297 then _validateGateway(i.caller, "depositStakingReward: invalid caller")
298298 else false
299299 if ((err == err))
300300 then {
301301 let userBalance = _loadUserBalance(dex_, STAKING_REWARD_WALLET, currency_)
302302 $Tuple2((_saveUserBalance(dex_, STAKING_REWARD_WALLET, currency_, (userBalance + amount)) ++ _saveTotalBalance(currency_, (_loadTotalBalance(currency_) + amount))), unit)
303303 }
304304 else throw("Strict value is not equal to itself.")
305305 }
306306
307307
308308
309309 @Callable(i)
310310 func claimReward (dex_,user_,currency_,amount_) = {
311311 let amount = valueOrErrorMessage(parseBigInt(amount_), "claimReward: amount not int")
312312 let err = if (if (if (if (if (_whenInitialized())
313313 then _validateString(dex_, "claimReward: invalid dex")
314314 else false)
315315 then _validateString(user_, "claimReward: invalid user")
316316 else false)
317317 then _validateString(currency_, "claimReward: invalid currency")
318318 else false)
319319 then _validateBigInt(amount, ZERO_BIGINT, "claimReward: invalid amount")
320320 else false)
321321 then _validateMatcher(i.caller, "claimReward: invalid matcher caller")
322322 else false
323323 if ((err == err))
324324 then {
325325 let dexSourceBalance = _loadUserBalance(dex_, STAKING_REWARD_WALLET, currency_)
326326 let userTargetBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
327327 let newDexSourceBalance = (dexSourceBalance - amount)
328328 let newUserTargetBalance = (userTargetBalance + amount)
329329 let err1 = _validateBigInt(newDexSourceBalance, ZERO_BIGINT, "claimReward: insufficient amount")
330330 if ((err1 == err1))
331331 then $Tuple2((_saveUserBalance(dex_, STAKING_REWARD_WALLET, currency_, newDexSourceBalance) ++ _saveUserBalance(user_, SPOT_WALLET, currency_, newUserTargetBalance)), unit)
332332 else throw("Strict value is not equal to itself.")
333333 }
334334 else throw("Strict value is not equal to itself.")
335335 }
336336
337337
338338
339339 @Callable(i)
340340 func getUserBalance (user_,wallet_,currency_) = $Tuple2(nil, toString(_loadUserBalance(user_, wallet_, currency_)))
341341
342342
343343
344344 @Callable(i)
345345 func setMultisig (multisig_) = {
346346 let err = if (_onlyThisContract(i.caller))
347347 then _validateAddress(multisig_, "setMultisig: invalid multisig")
348348 else false
349349 if ((err == err))
350350 then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
351351 else throw("Strict value is not equal to itself.")
352352 }
353353
354354
355355 @Verifier(tx)
356356 func verify () = match tx {
357357 case _ =>
358358 match getString(KEY_MULTISIG) {
359359 case multisig: String =>
360360 valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
361361 case _ =>
362362 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
363363 }
364364 }
365365

github/deemru/w8io/169f3d6 
52.00 ms