tx · 2DBjVmWtwbwBDoHTV9qNeB4dU3tbVU1sxJxdpqy7MKtU

3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T:  -0.01000000 Waves

2023.06.01 11:59 [2603385] smart account 3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T > SELF 0.00000000 Waves

{ "type": 13, "id": "2DBjVmWtwbwBDoHTV9qNeB4dU3tbVU1sxJxdpqy7MKtU", "fee": 1000000, "feeAssetId": null, "timestamp": 1685610153230, "version": 2, "chainId": 84, "sender": "3N7dpRHRc9PPXSCLMZA4tRFEQXzPQNHjs6T", "senderPublicKey": "6FwWutvTDWVXuYEgsyB6W34RQ5pNvL1ButovpyfJdgfr", "proofs": [ "57XVKAYJXoQxMks4xfk7CNvqD2RKSJp6rFSZgqTBjf1NXRpLHbNjvKznMFPfHxvieWnDNrwAwb1KFqYqephjAMsQ" ], "script": "base64:BgIICAISBAoCAQEAAQFpAQt3aXRoZHJhd09sZAILcGxhdGZvcm1GZWUGYW1vdW50BAVvd25lcgEaAVTtUtIUU1Fri0FIWpfzmBNloogPBC0pwfQEBXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgMJAAACCAgFAWkGY2FsbGVyBWJ5dGVzBQVvd25lcgkAAgECGXNvcnJ5ICB5b3UgaGF2ZSBubyBhY2Nlc3MDAwkAZwIFC3BsYXRmb3JtRmVlAAAJAGcCBQtwbGF0Zm9ybUZlZQUGYW1vdW50BwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIJAGgCBQZhbW91bnQAZAUFdGVhbXMFA25pbAUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EC3NldFNjcmlwdFR4BQckbWF0Y2gwBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleacnRgw=", "height": 2603385, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DqauuVjmy2ei1M6FtMbavoE8ZtrAHc1Y5cv2QvxkmhPY Next: none Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func withdrawAsimi (platformFee,amount) = {
7+func withdrawOld (platformFee,amount) = {
8+ let owner = base58'3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw'
89 let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
9- if ((i.caller == this))
10+ if ((i.caller.bytes == owner))
1011 then throw("sorry you have no access")
1112 else if (if ((platformFee >= 0))
1213 then (platformFee >= amount)
1617 }
1718
1819
19-
20-@Callable(i)
21-func withdrawWaves (platformFee,amount) = if ((i.caller == this))
22- then throw("sorry you have no access")
23- else if (if ((platformFee >= 0))
24- then (platformFee >= amount)
25- else false)
26- then [ScriptTransfer(i.caller, amount, unit)]
27- else nil
28-
20+@Verifier(tx)
21+func verify () = match tx {
22+ case setScriptTx: SetScriptTransaction =>
23+ false
24+ case _ =>
25+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
26+}
2927
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func withdrawAsimi (platformFee,amount) = {
7+func withdrawOld (platformFee,amount) = {
8+ let owner = base58'3NBYw8rxLmTvyEdsvaYor8nHG6GJ4NjB2Aw'
89 let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq'
9- if ((i.caller == this))
10+ if ((i.caller.bytes == owner))
1011 then throw("sorry you have no access")
1112 else if (if ((platformFee >= 0))
1213 then (platformFee >= amount)
1314 else false)
1415 then [ScriptTransfer(i.caller, (amount * 100), teams)]
1516 else nil
1617 }
1718
1819
19-
20-@Callable(i)
21-func withdrawWaves (platformFee,amount) = if ((i.caller == this))
22- then throw("sorry you have no access")
23- else if (if ((platformFee >= 0))
24- then (platformFee >= amount)
25- else false)
26- then [ScriptTransfer(i.caller, amount, unit)]
27- else nil
28-
20+@Verifier(tx)
21+func verify () = match tx {
22+ case setScriptTx: SetScriptTransaction =>
23+ false
24+ case _ =>
25+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
26+}
2927

github/deemru/w8io/169f3d6 
63.14 ms