tx · 4oHYTGJhA3hr67YKmfqVkicGFXSp1EQVqmjtwickKtHx

3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET:  -0.00200000 Waves

2023.05.15 16:32 [2579138] smart account 3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET > SELF 0.00000000 Waves

{ "type": 13, "id": "4oHYTGJhA3hr67YKmfqVkicGFXSp1EQVqmjtwickKtHx", "fee": 200000, "feeAssetId": null, "timestamp": 1684157570910, "version": 2, "chainId": 84, "sender": "3MwJL2DqwKdgVQ2Aw5ov1rTEmGTKEkK1wET", "senderPublicKey": "ACNdxdXUS5uLiYS4LMdrApJBVCQj8FDMHEknQkNYCUaK", "proofs": [ "FPkH9osyCwNmkmcnAt4xZTRv7zbAtzWTcU72TGN2JJ6RBsDNE2rQMVTh8KibxMv1Yme1iGvtHzF5pqPoj2gVgKA" ], "script": "base64:BgIPCAISABIDCgEBEgQKAgEIAAMBaQEHZGVwb3NpdAAEB3BheW1lbnQJAQV2YWx1ZQEIBQFpCHBheW1lbnRzAwMJAGYCCQCQAwEFB3BheW1lbnQAAQYJAQlpc0RlZmluZWQBCAkAkQMCBQdwYXltZW50AAAHYXNzZXRJZAkAAgECKFlvdSBjYW4gb25seSBvbmUgV0FWRVMgZGVwb3NpdCBhdCBhIHRpbWUECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQpjdXJyZW50S2V5AAAECW5ld0Ftb3VudAkAZAIFDWN1cnJlbnRBbW91bnQICQCRAwIFB3BheW1lbnQAAAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIFCmN1cnJlbnRLZXkFCW5ld0Ftb3VudAUDbmlsAWkBCHdpdGhkcmF3AQZhbW91bnQECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNY3VycmVudEFtb3VudAkBC3ZhbHVlT3JFbHNlAgkAmggCBQR0aGlzBQpjdXJyZW50S2V5AAAECW5ld0Ftb3VudAkAZQIFDWN1cnJlbnRBbW91bnQFBmFtb3VudAMJAGYCAAAFBmFtb3VudAkAAgECH0Nhbm5vdCB3aXRoZHJhdyBuZWdhdGl2ZSBhbW91bnQDCQBmAgAABQluZXdBbW91bnQJAAIBAhJOb3QgZW5vdWdoIGJhbGFuY2UJAMwIAgkBDEludGVnZXJFbnRyeQIFCmN1cnJlbnRLZXkFCW5ld0Ftb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFBmFtb3VudAUEdW5pdAUDbmlsAWkBC2RlcDEyU3dhdmVzAgZhbW91bnQNYWRkcmVzc1N3YXZlcwQKY3VycmVudEtleQkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAZhc3NldEEICQCRAwIIBQFpCHBheW1lbnRzAAAHYXNzZXRJZAQNYW1vdW50UGF5bWVudAUGYW1vdW50BAppbnZvY2F0aW9uCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQEFDWFkZHJlc3NTd2F2ZXMCB2RlcG9zaXQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUGYXNzZXRBBQ1hbW91bnRQYXltZW50BQNuaWwDCQAAAgUKaW52b2NhdGlvbgUKaW52b2NhdGlvbgkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQpjdXJyZW50S2V5BQZhbW91bnQFA25pbAUEdW5pdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5FO4ELQ==", "height": 2579138, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: zMJgcRLVZkPScmTVDXbrtt8szwwmEwrRsGh1KAXFPux Next: none Diff:
OldNewDifferences
3535
3636
3737 @Callable(a)
38-func dep11Swaves (f,g) = {
38+func dep12Swaves (f,g) = {
3939 let c = toBase58String(a.caller.bytes)
40- let h = unit
41- let i = 1
40+ let h = a.payments[0].assetId
41+ let i = f
4242 let j = invoke(addressFromStringValue(g), "deposit", nil, [AttachedPayment(h, i)])
4343 if ((j == j))
4444 then $Tuple2([IntegerEntry(c, f)], unit)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func deposit () = {
88 let b = value(a.payments)
99 if (if ((size(b) > 1))
1010 then true
1111 else isDefined(b[0].assetId))
1212 then throw("You can only one WAVES deposit at a time")
1313 else {
1414 let c = toBase58String(a.caller.bytes)
1515 let d = valueOrElse(getInteger(this, c), 0)
1616 let e = (d + b[0].amount)
1717 [IntegerEntry(c, e)]
1818 }
1919 }
2020
2121
2222
2323 @Callable(a)
2424 func withdraw (f) = {
2525 let c = toBase58String(a.caller.bytes)
2626 let d = valueOrElse(getInteger(this, c), 0)
2727 let e = (d - f)
2828 if ((0 > f))
2929 then throw("Cannot withdraw negative amount")
3030 else if ((0 > e))
3131 then throw("Not enough balance")
3232 else [IntegerEntry(c, e), ScriptTransfer(a.caller, f, unit)]
3333 }
3434
3535
3636
3737 @Callable(a)
38-func dep11Swaves (f,g) = {
38+func dep12Swaves (f,g) = {
3939 let c = toBase58String(a.caller.bytes)
40- let h = unit
41- let i = 1
40+ let h = a.payments[0].assetId
41+ let i = f
4242 let j = invoke(addressFromStringValue(g), "deposit", nil, [AttachedPayment(h, i)])
4343 if ((j == j))
4444 then $Tuple2([IntegerEntry(c, f)], unit)
4545 else throw("Strict value is not equal to itself.")
4646 }
4747
4848
4949 @Verifier(k)
5050 func l () = {
5151 let m = k
5252 sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey)
5353 }
5454

github/deemru/w8io/026f985 
53.53 ms