tx · 67zAgh5xzku45yJZx2ry9vECoZ6QKEHfdwcWu4popPS

3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P:  -0.01000000 Waves

2023.05.31 08:48 [2601747] smart account 3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P > SELF 0.00000000 Waves

{ "type": 13, "id": "67zAgh5xzku45yJZx2ry9vECoZ6QKEHfdwcWu4popPS", "fee": 1000000, "feeAssetId": null, "timestamp": 1685512153525, "version": 2, "chainId": 84, "sender": "3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P", "senderPublicKey": "BTvXQMmkgSf57dbcqWxpEvbi3ZYcEeWFkkXDZC6FrneM", "proofs": [ "58VxGJBe28m9v8JJY8nCSzDEfFiHufuWC9pM8itMpASZ5KfwHffDGyHTrDSn4uj1B1WhxXsq2j5yGmf1WEy9TLEL" ], "script": "base64:BgILCAISABIAEgMKAQEBAAxvd25lckFkZHJlc3MCIzNNdmpBYURZSHBTNEE1SzRDVjNrWk1NRUg5bTlKZEJTdmJxAwFpAQRjYWxsAAQFYXNzZXQJAMMIBwIFQXNzZXQCAAABAAAGBQR1bml0AAAEB2Fzc2V0SWQJALgIAQUFYXNzZXQJAMwIAgkBC0JpbmFyeUVudHJ5AgIDYmluAQAJAMwIAgkBDEJvb2xlYW5FbnRyeQICBGJvb2wGCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgNpbnQAAQkAzAgCCQELU3RyaW5nRW50cnkCAgNzdHICAAkAzAgCCQELRGVsZXRlRW50cnkBAgNzdHIJAMwIAgUFYXNzZXQJAMwIAgkBB1JlaXNzdWUDBQdhc3NldElkAAEHCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgABBQdhc3NldElkBQNuaWwBaQEHZGVwb3NpdAAECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNZGVwb3NpdEFtb3VudAkAZQIIC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aXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEGFtb3VudFRvV2l0aERyYXcFBHVuaXQFA25pbAECdHgBBnZlcmlmeQAH8QgDEw==", "height": 2601747, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6py2KX9oKWHjv8AHGXqfSjG1nEcZTzrUDV2LBfz2FCQf Next: none Diff:
OldNewDifferences
4848 }
4949
5050
51+@Verifier(tx)
52+func verify () = false
53+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerAddress = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq"
55
66 @Callable(i)
77 func call () = {
88 let asset = Issue("Asset", "", 1, 0, true, unit, 0)
99 let assetId = calculateAssetId(asset)
1010 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset, Reissue(assetId, 1, false), Burn(assetId, 1), ScriptTransfer(i.caller, 1, assetId)]
1111 }
1212
1313
1414
1515 @Callable(i)
1616 func deposit () = {
1717 let currentKey = toBase58String(i.caller.bytes)
1818 let depositAmount = (i.payments[0].amount - 50000000)
1919 let platformfee = 50000000
2020 let totalPlatformFee = match getInteger(this, ("platform_bal_" + ownerAddress)) {
2121 case a: Int =>
2222 a
2323 case _ =>
2424 0
2525 }
2626 let platformFeeInc = (totalPlatformFee + platformfee)
2727 [IntegerEntry(("balance_" + currentKey), depositAmount), IntegerEntry(("platform_bal_" + ownerAddress), platformFeeInc)]
2828 }
2929
3030
3131
3232 @Callable(i)
3333 func withDraw (amountToWithDraw) = {
3434 let Caller = toBase58String(i.caller.bytes)
3535 let currentKey = toBase58String(i.caller.bytes)
3636 let currentPlatformAmount = match getInteger(this, ("platform_bal_" + Caller)) {
3737 case a: Int =>
3838 a
3939 case _ =>
4040 0
4141 }
4242 let newAmount = (currentPlatformAmount - amountToWithDraw)
4343 if ((Caller != ownerAddress))
4444 then throw("Not Authorized")
4545 else if ((currentPlatformAmount == 0))
4646 then throw("No sufficent amount available")
4747 else [IntegerEntry(("platform_bal_" + ownerAddress), newAmount), ScriptTransfer(i.caller, amountToWithDraw, unit)]
4848 }
4949
5050
51+@Verifier(tx)
52+func verify () = false
53+

github/deemru/w8io/026f985 
51.23 ms