tx · 4XFRAG4MaRmnwppDEvSiy2tnTryiMgHG5a81cNpGfCGS

3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so:  -0.04000000 Waves

2022.05.21 17:00 [2061532] smart account 3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so > SELF 0.00000000 Waves

{ "type": 13, "id": "4XFRAG4MaRmnwppDEvSiy2tnTryiMgHG5a81cNpGfCGS", "fee": 4000000, "feeAssetId": null, "timestamp": 1653141678250, "version": 2, "chainId": 84, "sender": "3NAVJcqMw8AsPecAtd74CeNtAG2qRV2V1so", "senderPublicKey": "EpvN8tsbEWeeqZSLaEVCda8PZfKa1JAF3ZFp7hRq1gWj", "proofs": [ "3s5E88KebkMtZbhK9ENTqN4CYDkv531EU5xQndWtsAShG9FDQFGf9tRuHvYKDUkMyTp3wYxjd37GzTLKiWacrUec" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAADAAAAAAZ1c2RuSUQBAAAAIA/yHBKs5MQ8muxGGqslqLDsugcrRsxtiHLwteKSSQG0AAAAAAZldFVTRE4BAAAAIArgbcH68lrWZElMEVXNaWlpG4Cviv0rAfCbvXtcX03lAAAAAAhpc1N0b3BlZAcAAAACAAAAAWkBAAAAB2RlcG9zaXQAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAAmFtCAUAAAADcG10AAAABmFtb3VudAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAGdXNkbklECQAAAgAAAAECAAAADUludmFsaWQgdG9rZW4DBQAAAAhpc1N0b3BlZAkAAAIAAAABAgAAAA9kQXBwIGlzIHN0b3BwZWQEAAAABXRvSXNzCQAAaAAAAAIFAAAAAmFtAAAAAAAAAABkBAAAAAFyCQEAAAAHUmVpc3N1ZQAAAAMFAAAABmV0VVNETgUAAAAFdG9Jc3MGBAAAAAN0cngJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAFdG9Jc3MFAAAABmV0VVNETgkABEwAAAACBQAAAAFyCQAETAAAAAIFAAAAA3RyeAUAAAADbmlsAAAAAWkBAAAACHdpdGhkcmF3AAAAAAQAAAADcG10CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAANhbXQIBQAAAANwbXQAAAAGYW1vdW50AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAdhc3NldElkBQAAAAZldFVTRE4JAAACAAAAAQIAAAAYSW52YWxpZCBwYXltZW50IGF0dGFjaGVkAwkAAGcAAAACAAAAAAAAAAAABQAAAANhbXQJAAACAAAAAQIAAAAOSW52YWxpZCBhbW91bnQEAAAABHRvUEIJAABpAAAAAgUAAAADYW10AAAAAAAAAABkBAAAAANicm4JAQAAAARCdXJuAAAAAgUAAAAGZXRVU0ROBQAAAANhbXQEAAAAAnBiCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAABHRvUEIFAAAABnVzZG5JRAkABEwAAAACBQAAAANicm4JAARMAAAAAgUAAAACcGIFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V55uejow==", "height": 2061532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8G4BieYZdFxiCA9e2v1Jxfqmk2JBvpQVpcXzyQbY5U9k Next: none Diff:
OldNewDifferences
2424 }
2525
2626
27-@Verifier(j)
28-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
27+
28+@Callable(d)
29+func withdraw () = {
30+ let e = value(d.payments[0])
31+ let j = e.amount
32+ if ((e.assetId != b))
33+ then throw("Invalid payment attached")
34+ else if ((0 >= j))
35+ then throw("Invalid amount")
36+ else {
37+ let k = (j / 100)
38+ let l = Burn(b, j)
39+ let m = ScriptTransfer(d.caller, k, a)
40+[l, m]
41+ }
42+ }
43+
44+
45+@Verifier(n)
46+func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey)
2947
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'
55
66 let b = base58'jTZeaNjsi7iJK5mTo42VgYjRBHdHawAdhYykMQUnx7v'
77
88 let c = false
99
1010 @Callable(d)
1111 func deposit () = {
1212 let e = value(d.payments[0])
1313 let f = e.amount
1414 if ((e.assetId != a))
1515 then throw("Invalid token")
1616 else if (c)
1717 then throw("dApp is stopped")
1818 else {
1919 let g = (f * 100)
2020 let h = Reissue(b, g, true)
2121 let i = ScriptTransfer(d.caller, g, b)
2222 [h, i]
2323 }
2424 }
2525
2626
27-@Verifier(j)
28-func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey)
27+
28+@Callable(d)
29+func withdraw () = {
30+ let e = value(d.payments[0])
31+ let j = e.amount
32+ if ((e.assetId != b))
33+ then throw("Invalid payment attached")
34+ else if ((0 >= j))
35+ then throw("Invalid amount")
36+ else {
37+ let k = (j / 100)
38+ let l = Burn(b, j)
39+ let m = ScriptTransfer(d.caller, k, a)
40+[l, m]
41+ }
42+ }
43+
44+
45+@Verifier(n)
46+func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey)
2947

github/deemru/w8io/026f985 
18.65 ms