tx · GvhZNZwcJLxtzaYbjVhyWXqoS27XNkDXay2gKpT7yPTv

3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa:  -0.01400000 Waves

2024.11.21 12:55 [3381056] smart account 3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa > SELF 0.00000000 Waves

{ "type": 13, "id": "GvhZNZwcJLxtzaYbjVhyWXqoS27XNkDXay2gKpT7yPTv", "fee": 1400000, "feeAssetId": null, "timestamp": 1732182852170, "version": 2, "chainId": 84, "sender": "3MqSv5qEvZKapkPQ6hPtUgbZfxdMQexnwqa", "senderPublicKey": "tinwq3CCsobvKT9fhHjTjbxXQdTDmXW9KtgPvR94m1H", "proofs": [ "5X2qWPR52avMqPyVvTwhsv1vwP4qm4tUPypZzkZh1y82Rbvu1xGhCzS7HY7QDr2zavK5YmHSLEmcDfc5rdhMkZVs" ], "script": "base64:BwJFCAISBAoCCAgSBQoDCAgIEgcKBQgICAgIEgUKAwgICBIJCgcICAgICAgIEgUKAwgICBIGCgQICAgIEgUKAwgICBIDCgEIIQAJU0VQQVJBVE9SAgJfXwAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAUS0VZX0dBVEVXQVlfQ09OVFJBQ1QCEEdBVEVXQVlfQ09OVFJBQ1QAFEtFWV9NQVRDSEVSX0NPTlRSQUNUAhBNQVRDSEVSX0NPTlRSQUNUABBLRVlfVVNFUl9CQUxBTkNFAgxVU0VSX0JBTEFOQ0UAEUtFWV9UT1RBTF9CQUxBTkNFAg1UT1RBTF9CQUxBTkNFAAtTUE9UX1dBTExFVAIEU1BPVAAVU1RBS0lOR19SRVdBUkRfV0FMTEVUAg5TVEFLSU5HX1JFV0FSRAALWkVST19CSUdJTlQJALYCAQAAARBfdmFsaWRhdGVBZGRyZXNzAghhZGRyZXNzXwRlcnJfBAckbWF0Y2gwCQCmCAEFCGFkZHJlc3NfAwkAAQIFByRtYX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BBUkFUT1IHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5fQO9bw==", "height": 3381056, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FFDt51UGQUxwE3127Cu5DhPAigdsPYuibeSofwCzwexu Next: none Diff:
OldNewDifferences
1818 let KEY_TOTAL_BALANCE = "TOTAL_BALANCE"
1919
2020 let SPOT_WALLET = "SPOT"
21-
22-let WITHDRAWALS_WALLET = "WITHDRAWALS"
2321
2422 let STAKING_REWARD_WALLET = "STAKING_REWARD"
2523
200198 else false)
201199 then _validateBigInt(amount, ZERO_BIGINT, "internalTransfer: invalid amount")
202200 else false)
203- then if ((targetWallet_ == WITHDRAWALS_WALLET))
204- then _validateGateway(i.caller, "internalTransfer: invalid gw caller")
205- else _validateMatcher(i.caller, "internalTransfer: invalid matcher caller")
201+ then _validateMatcher(i.caller, "internalTransfer: invalid matcher caller")
206202 else false
207203 if ((err == err))
208204 then {
234230 else false
235231 if ((err == err))
236232 then {
237- let userBalance = _loadUserBalance(user_, WITHDRAWALS_WALLET, currency_)
233+ let userBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
238234 let newUserBalance = (userBalance - amount)
239235 let newTotalBalance = (_loadTotalBalance(currency_) - amount)
240236 let err1 = if (_validateBigInt(newUserBalance, ZERO_BIGINT, "withdraw: insufficient amount"))
241237 then _validateBigInt(newTotalBalance, ZERO_BIGINT, "withdraw: negative total balance")
242238 else false
243239 if ((err1 == err1))
244- then $Tuple2((_saveUserBalance(user_, WITHDRAWALS_WALLET, currency_, newUserBalance) ++ _saveTotalBalance(currency_, newTotalBalance)), unit)
240+ then $Tuple2((_saveUserBalance(user_, SPOT_WALLET, currency_, newUserBalance) ++ _saveTotalBalance(currency_, newTotalBalance)), unit)
245241 else throw("Strict value is not equal to itself.")
246242 }
247243 else throw("Strict value is not equal to itself.")
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"
21-
22-let WITHDRAWALS_WALLET = "WITHDRAWALS"
2321
2422 let STAKING_REWARD_WALLET = "STAKING_REWARD"
2523
2624 let ZERO_BIGINT = toBigInt(0)
2725
2826 func _validateAddress (address_,err_) = match addressFromString(address_) {
2927 case a: Address =>
3028 true
3129 case _ =>
3230 throw(err_)
3331 }
3432
3533
3634 func _validateBigInt (val_,lowerBoundary_,err_) = if ((lowerBoundary_ > val_))
3735 then throw(err_)
3836 else true
3937
4038
4139 func _validateString (val_,err_) = if (if ((0 >= size(val_)))
4240 then true
4341 else contains(val_, SEPARATOR))
4442 then throw(err_)
4543 else true
4644
4745
4846 func _validateStringEqual (val1_,val2_,err_) = if ((val1_ != val2_))
4947 then throw(err_)
5048 else true
5149
5250
5351 func _loadInit () = match getBoolean(KEY_INIT) {
5452 case a: Boolean =>
5553 a
5654 case _ =>
5755 false
5856 }
5957
6058
6159 func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
6260
6361
6462 func _loadMultisig () = match getString(KEY_MULTISIG) {
6563 case a: String =>
6664 addressFromStringValue(a)
6765 case _ =>
6866 Address(base58'')
6967 }
7068
7169
7270 func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
7371
7472
7573 func _loadGatewayContract () = match getString(KEY_GATEWAY_CONTRACT) {
7674 case a: String =>
7775 addressFromStringValue(a)
7876 case _ =>
7977 Address(base58'')
8078 }
8179
8280
8381 func _saveGatewayContract (gatewayContract_) = [StringEntry(KEY_GATEWAY_CONTRACT, toString(gatewayContract_))]
8482
8583
8684 func _loadMatcherContract () = match getString(KEY_MATCHER_CONTRACT) {
8785 case a: String =>
8886 addressFromStringValue(a)
8987 case _ =>
9088 Address(base58'')
9189 }
9290
9391
9492 func _saveMatcherContract (matcherContract_) = [StringEntry(KEY_MATCHER_CONTRACT, toString(matcherContract_))]
9593
9694
9795 func _loadUserBalance (user_,wallet_,currency_) = match getString(makeString([KEY_USER_BALANCE, user_, wallet_, currency_], SEPARATOR)) {
9896 case a: String =>
9997 parseBigIntValue(a)
10098 case _ =>
10199 ZERO_BIGINT
102100 }
103101
104102
105103 func _saveUserBalance (user_,wallet_,currency_,balance_) = [StringEntry(makeString([KEY_USER_BALANCE, user_, wallet_, currency_], SEPARATOR), toString(balance_))]
106104
107105
108106 func _loadTotalBalance (currency_) = match getString(makeString([KEY_TOTAL_BALANCE, currency_], SEPARATOR)) {
109107 case a: String =>
110108 parseBigIntValue(a)
111109 case _ =>
112110 ZERO_BIGINT
113111 }
114112
115113
116114 func _saveTotalBalance (currency_,balance_) = [StringEntry(makeString([KEY_TOTAL_BALANCE, currency_], SEPARATOR), toString(balance_))]
117115
118116
119117 func _onlyThisContract (caller_) = if ((caller_ != this))
120118 then throw("_onlyThisContract: revert")
121119 else true
122120
123121
124122 func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
125123 then throw("_whenMultisigSet: revert")
126124 else true
127125
128126
129127 func _whenNotInitialized () = if (_loadInit())
130128 then throw("_whenNotInitialized: revert")
131129 else true
132130
133131
134132 func _whenInitialized () = if (!(_loadInit()))
135133 then throw("_whenInitialized: revert")
136134 else true
137135
138136
139137 func _validateGateway (caller,err_) = if ((_loadGatewayContract() != caller))
140138 then throw(err_)
141139 else true
142140
143141
144142 func _validateMatcher (caller,err_) = if ((_loadMatcherContract() != caller))
145143 then throw(err_)
146144 else true
147145
148146
149147 @Callable(i)
150148 func init (gatewayContract_,matcherContract_) = {
151149 let err = if (if (if (if (_onlyThisContract(i.caller))
152150 then _whenNotInitialized()
153151 else false)
154152 then _whenMultisigSet()
155153 else false)
156154 then _validateAddress(gatewayContract_, "init: invalid gatewayContract")
157155 else false)
158156 then _validateAddress(matcherContract_, "init: invalid matcherContract")
159157 else false
160158 if ((err == err))
161159 then $Tuple2(((_saveInit(true) ++ _saveGatewayContract(addressFromStringValue(gatewayContract_))) ++ _saveMatcherContract(addressFromStringValue(matcherContract_))), unit)
162160 else throw("Strict value is not equal to itself.")
163161 }
164162
165163
166164
167165 @Callable(i)
168166 func deposit (user_,currency_,amount_) = {
169167 let amount = valueOrErrorMessage(parseBigInt(amount_), "deposit: amount not int")
170168 let err = if (if (if (if (_whenInitialized())
171169 then _validateString(user_, "deposit: invalid user")
172170 else false)
173171 then _validateString(currency_, "deposit: invalid currency")
174172 else false)
175173 then _validateBigInt(amount, ZERO_BIGINT, "deposit: invalid amount")
176174 else false)
177175 then _validateGateway(i.caller, "deposit: invalid caller")
178176 else false
179177 if ((err == err))
180178 then {
181179 let userBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
182180 $Tuple2((_saveUserBalance(user_, SPOT_WALLET, currency_, (userBalance + amount)) ++ _saveTotalBalance(currency_, (_loadTotalBalance(currency_) + amount))), unit)
183181 }
184182 else throw("Strict value is not equal to itself.")
185183 }
186184
187185
188186
189187 @Callable(i)
190188 func internalTransfer (user_,sourceWallet_,targetWallet_,currency_,amount_) = {
191189 let amount = valueOrErrorMessage(parseBigInt(amount_), "internalTransfer: amount not int")
192190 let err = if (if (if (if (if (if (_whenInitialized())
193191 then _validateString(user_, "internalTransfer: invalid user")
194192 else false)
195193 then _validateString(sourceWallet_, "internalTransfer: invalid sourceWallet")
196194 else false)
197195 then _validateString(targetWallet_, "internalTransfer: invalid targetWallet")
198196 else false)
199197 then _validateString(currency_, "internalTransfer: invalid currency")
200198 else false)
201199 then _validateBigInt(amount, ZERO_BIGINT, "internalTransfer: invalid amount")
202200 else false)
203- then if ((targetWallet_ == WITHDRAWALS_WALLET))
204- then _validateGateway(i.caller, "internalTransfer: invalid gw caller")
205- else _validateMatcher(i.caller, "internalTransfer: invalid matcher caller")
201+ then _validateMatcher(i.caller, "internalTransfer: invalid matcher caller")
206202 else false
207203 if ((err == err))
208204 then {
209205 let userSourceBalance = _loadUserBalance(user_, sourceWallet_, currency_)
210206 let userTargetBalance = _loadUserBalance(user_, targetWallet_, currency_)
211207 let newUserSourceBalance = (userSourceBalance - amount)
212208 let newUserTargetBalance = (userTargetBalance + amount)
213209 let err1 = _validateBigInt(newUserSourceBalance, ZERO_BIGINT, "internalTransfer: insufficient amount")
214210 if ((err1 == err1))
215211 then $Tuple2((_saveUserBalance(user_, sourceWallet_, currency_, newUserSourceBalance) ++ _saveUserBalance(user_, targetWallet_, currency_, newUserTargetBalance)), unit)
216212 else throw("Strict value is not equal to itself.")
217213 }
218214 else throw("Strict value is not equal to itself.")
219215 }
220216
221217
222218
223219 @Callable(i)
224220 func withdraw (user_,currency_,amount_) = {
225221 let amount = valueOrErrorMessage(parseBigInt(amount_), "withdraw: amount not int")
226222 let err = if (if (if (if (_whenInitialized())
227223 then _validateString(user_, "withdraw: invalid user")
228224 else false)
229225 then _validateString(currency_, "withdraw: invalid currency")
230226 else false)
231227 then _validateBigInt(amount, ZERO_BIGINT, "withdraw: invalid amount")
232228 else false)
233229 then _validateGateway(i.caller, "withdraw: invalid caller")
234230 else false
235231 if ((err == err))
236232 then {
237- let userBalance = _loadUserBalance(user_, WITHDRAWALS_WALLET, currency_)
233+ let userBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
238234 let newUserBalance = (userBalance - amount)
239235 let newTotalBalance = (_loadTotalBalance(currency_) - amount)
240236 let err1 = if (_validateBigInt(newUserBalance, ZERO_BIGINT, "withdraw: insufficient amount"))
241237 then _validateBigInt(newTotalBalance, ZERO_BIGINT, "withdraw: negative total balance")
242238 else false
243239 if ((err1 == err1))
244- then $Tuple2((_saveUserBalance(user_, WITHDRAWALS_WALLET, currency_, newUserBalance) ++ _saveTotalBalance(currency_, newTotalBalance)), unit)
240+ then $Tuple2((_saveUserBalance(user_, SPOT_WALLET, currency_, newUserBalance) ++ _saveTotalBalance(currency_, newTotalBalance)), unit)
245241 else throw("Strict value is not equal to itself.")
246242 }
247243 else throw("Strict value is not equal to itself.")
248244 }
249245
250246
251247
252248 @Callable(i)
253249 func externalTransfer (wallet_,currency_,from_,to_,amount_,fee_,dex_) = {
254250 let amount = valueOrErrorMessage(parseBigInt(amount_), "externalTransfer: amount not int")
255251 let fee = valueOrErrorMessage(parseBigInt(fee_), "externalTransfer: fee not int")
256252 let err = if (if (if (if (if (if (if (if (_whenInitialized())
257253 then _validateString(wallet_, "externalTransfer: invalid wallet")
258254 else false)
259255 then _validateString(currency_, "externalTransfer: invalid currency")
260256 else false)
261257 then _validateString(from_, "externalTransfer: invalid from")
262258 else false)
263259 then _validateString(to_, "externalTransfer: invalid to")
264260 else false)
265261 then _validateBigInt(amount, ZERO_BIGINT, "externalTransfer: invalid amount")
266262 else false)
267263 then _validateBigInt(fee, ZERO_BIGINT, "externalTransfer: invalid fee")
268264 else false)
269265 then _validateString(dex_, "externalTransfer: invalid dex")
270266 else false)
271267 then _validateMatcher(i.caller, "externalTransfer: invalid matcher caller")
272268 else false
273269 if ((err == err))
274270 then {
275271 let userSourceBalance = _loadUserBalance(from_, wallet_, currency_)
276272 let userTargetBalance = _loadUserBalance(to_, wallet_, currency_)
277273 let dexTargetBalance = _loadUserBalance(dex_, wallet_, currency_)
278274 let newUserSourceBalance = ((userSourceBalance - amount) - fee)
279275 let newUserTargetBalance = (userTargetBalance + amount)
280276 let newDexTargetBalance = (dexTargetBalance + fee)
281277 let err1 = _validateBigInt(newUserSourceBalance, ZERO_BIGINT, "externalTransfer: insufficient amount")
282278 if ((err1 == err1))
283279 then $Tuple2(((_saveUserBalance(from_, wallet_, currency_, newUserSourceBalance) ++ _saveUserBalance(to_, wallet_, currency_, newUserTargetBalance)) ++ _saveUserBalance(dex_, wallet_, currency_, newDexTargetBalance)), unit)
284280 else throw("Strict value is not equal to itself.")
285281 }
286282 else throw("Strict value is not equal to itself.")
287283 }
288284
289285
290286
291287 @Callable(i)
292288 func depositStakingReward (dex_,currency_,amount_) = {
293289 let amount = valueOrErrorMessage(parseBigInt(amount_), "depositStakingReward: amount not int")
294290 let err = if (if (if (if (_whenInitialized())
295291 then _validateString(dex_, "depositStakingReward: invalid dex")
296292 else false)
297293 then _validateString(currency_, "depositStakingReward: invalid currency")
298294 else false)
299295 then _validateBigInt(amount, ZERO_BIGINT, "depositStakingReward: invalid amount")
300296 else false)
301297 then _validateGateway(i.caller, "depositStakingReward: invalid caller")
302298 else false
303299 if ((err == err))
304300 then {
305301 let userBalance = _loadUserBalance(dex_, STAKING_REWARD_WALLET, currency_)
306302 $Tuple2((_saveUserBalance(dex_, STAKING_REWARD_WALLET, currency_, (userBalance + amount)) ++ _saveTotalBalance(currency_, (_loadTotalBalance(currency_) + amount))), unit)
307303 }
308304 else throw("Strict value is not equal to itself.")
309305 }
310306
311307
312308
313309 @Callable(i)
314310 func claimReward (dex_,user_,currency_,amount_) = {
315311 let amount = valueOrErrorMessage(parseBigInt(amount_), "claimReward: amount not int")
316312 let err = if (if (if (if (if (_whenInitialized())
317313 then _validateString(dex_, "claimReward: invalid dex")
318314 else false)
319315 then _validateString(user_, "claimReward: invalid user")
320316 else false)
321317 then _validateString(currency_, "claimReward: invalid currency")
322318 else false)
323319 then _validateBigInt(amount, ZERO_BIGINT, "claimReward: invalid amount")
324320 else false)
325321 then _validateMatcher(i.caller, "claimReward: invalid matcher caller")
326322 else false
327323 if ((err == err))
328324 then {
329325 let dexSourceBalance = _loadUserBalance(dex_, STAKING_REWARD_WALLET, currency_)
330326 let userTargetBalance = _loadUserBalance(user_, SPOT_WALLET, currency_)
331327 let newDexSourceBalance = (dexSourceBalance - amount)
332328 let newUserTargetBalance = (userTargetBalance + amount)
333329 let err1 = _validateBigInt(newDexSourceBalance, ZERO_BIGINT, "claimReward: insufficient amount")
334330 if ((err1 == err1))
335331 then $Tuple2((_saveUserBalance(dex_, STAKING_REWARD_WALLET, currency_, newDexSourceBalance) ++ _saveUserBalance(user_, SPOT_WALLET, currency_, newUserTargetBalance)), unit)
336332 else throw("Strict value is not equal to itself.")
337333 }
338334 else throw("Strict value is not equal to itself.")
339335 }
340336
341337
342338
343339 @Callable(i)
344340 func getUserBalance (user_,wallet_,currency_) = $Tuple2(nil, toString(_loadUserBalance(user_, wallet_, currency_)))
345341
346342
347343
348344 @Callable(i)
349345 func setMultisig (multisig_) = {
350346 let err = if (_onlyThisContract(i.caller))
351347 then _validateAddress(multisig_, "setMultisig: invalid multisig")
352348 else false
353349 if ((err == err))
354350 then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
355351 else throw("Strict value is not equal to itself.")
356352 }
357353
358354
359355 @Verifier(tx)
360356 func verify () = match tx {
361357 case _ =>
362358 match getString(KEY_MULTISIG) {
363359 case multisig: String =>
364360 valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
365361 case _ =>
366362 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
367363 }
368364 }
369365

github/deemru/w8io/026f985 
36.64 ms