tx · 14baYxbEnzoCmRBJnKcJ9QqL6L37RCATk5JoriPgHJWS

3My6LmrRSRvJ73T14oT5k53SGPavGFoacWc:  -0.00500000 Waves

2022.12.02 18:00 [2342879] smart account 3My6LmrRSRvJ73T14oT5k53SGPavGFoacWc > SELF 0.00000000 Waves

{ "type": 13, "id": "14baYxbEnzoCmRBJnKcJ9QqL6L37RCATk5JoriPgHJWS", "fee": 500000, "feeAssetId": null, "timestamp": 1669993297166, "version": 2, "chainId": 84, "sender": "3My6LmrRSRvJ73T14oT5k53SGPavGFoacWc", "senderPublicKey": "7d1SvcwczqVvG6wiT5VYevFv5gAFtbWZw1SSiEUFkmcD", "proofs": [ "2PDrhTi1duwnLHafYsgLD935ogXHGfHWgE5C6cKVqGxyend6hPHyv7ofcH7ykfGqy7y6NhzVueUfbBypXeaXvo5d" ], "script": "base64:BgIKCAISBAoCCAESAAMAB2Fzc2V0SWQCLEhIbWFGUXBVb2J3S3h6ano0RUNhQlB0b0Y2OWt1akt3VTJjb3phVXpUc2d2AQ1nZXRBc3NldEJ5dGVzAQphc3NldElkU3RyAwkAAAIFCmFzc2V0SWRTdHICBVdBVkVTBQR1bml0CQDZBAEFCmFzc2V0SWRTdHIBCmdldEJhbGFuY2UBB2Fzc2V0SWQEByRtYXRjaDAFB2Fzc2V0SWQDCQABAgUHJG1hdGNoMAIEVW5pdAQBeAUHJG1hdGNoMAgJAO8HAQUEdGhpcwlhdmFpbGFibGUJAPAHAgUEdGhpcwkBBXZhbHVlAQUHYXNzZXRJZAIBaQEId2l0aGRyYXcCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQEB2JhbGFuY2UJAQpnZXRCYWxhbmNlAQkA2QQBBQdhc3NldElkAwkAZgIFC2Fzc2V0QW1vdW50BQdiYWxhbmNlCQACAQIqVGhpcyBhbW91bnQgaXMgbm90IGF2YWlsYWJsZSBmb3IgdGhpcyB1c2VyCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgULYXNzZXRBbW91bnQJAQ1nZXRBc3NldEJ5dGVzAQUKYXNzZXRJZFN0cgUDbmlsAWkBB2RlcG9zaXQABQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5SOJ1VQ==", "height": 2342879, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DoDiJoYhvgCFv5ovWQJxEA8vUsjn3y64u7PFyy4on7GN Next: GBqArdceoo75o4HmfRazGjNtJTZ51g93YpsmgCspasma Diff:
OldNewDifferences
2727
2828
2929 @Callable(i)
30-func deposit () = if (if ((size(i.payments) != 1))
31- then true
32- else (i.payments[0].amount == 0))
33- then throw("1 payment has to be attached")
34- else nil
30+func deposit () = nil
3531
3632
3733 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let assetId = "HHmaFQpUobwKxzjz4ECaBPtoF69kujKwU2cozaUzTsgv"
55
66 func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES"))
77 then unit
88 else fromBase58String(assetIdStr)
99
1010
1111 func getBalance (assetId) = match assetId {
1212 case x: Unit =>
1313 wavesBalance(this).available
1414 case _ =>
1515 assetBalance(this, value(assetId))
1616 }
1717
1818
1919 @Callable(i)
2020 func withdraw (assetIdStr,assetAmount) = {
2121 let balance = getBalance(fromBase58String(assetId))
2222 if ((assetAmount > balance))
2323 then throw("This amount is not available for this user")
2424 else [ScriptTransfer(i.caller, assetAmount, getAssetBytes(assetIdStr))]
2525 }
2626
2727
2828
2929 @Callable(i)
30-func deposit () = if (if ((size(i.payments) != 1))
31- then true
32- else (i.payments[0].amount == 0))
33- then throw("1 payment has to be attached")
34- else nil
30+func deposit () = nil
3531
3632
3733 @Verifier(tx)
3834 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3935

github/deemru/w8io/026f985 
24.45 ms