tx · Cgs4kgSLhfrChh5WH96ugTMHy59aV293bcPdp3S2A4Wu

3MshECSyzvqxEmRbzCGfL36NeZmJKLdo3nN:  -0.01400000 Waves

2022.01.30 03:12 [1900935] smart account 3MshECSyzvqxEmRbzCGfL36NeZmJKLdo3nN > SELF 0.00000000 Waves

{ "type": 13, "id": "Cgs4kgSLhfrChh5WH96ugTMHy59aV293bcPdp3S2A4Wu", "fee": 1400000, "feeAssetId": null, "timestamp": 1643501553124, "version": 2, "chainId": 84, "sender": "3MshECSyzvqxEmRbzCGfL36NeZmJKLdo3nN", "senderPublicKey": "7VZDUsa6QgaFEedQ8z2o1pa7LT7hqMPf9ZaqKt4KzeC6", "proofs": [ "5yNMWx3R2DGdFfuu3fup35iVMXksEQaAWeMoad1wo5xmScgWQvzpH9yKycrpiVrfB77BemciWH34nuqVyYAonCy9" ], "script": "base64:AAIFAAAAAAAAAAgIAhIAEgASAAAAAAMAAAAAC2Jkc21Bc3NldElkAQAAACBV7sO+qgvwUOhxyBuqbnCepLHI/kouucHxzMVrD3iXSwAAAAAETU9URAIAAAAAAAAAAAZiZG1zU0MBAAAAGgFXmrWduIs+QWpr5BidLjsKdq8GItA1inUQAAAAAwAAAAFpAQAAAARiZHNtAAAAAAQAAAALd2F2ZXNBbW91bnQICQAD7wAAAAEFAAAABHRoaXMAAAAJYXZhaWxhYmxlBAAAAApiZHNtQW1vdW50CQAD8AAAAAIFAAAABHRoaXMFAAAAC2Jkc21Bc3NldElkBAAAAAFyCQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAAGYmRtc1NDAgAAAAdidXlOc2J0BQAAAANuaWwJAARMAAAAAgkBAAAAD0F0dGFjaGVkUGF5bWVudAAAAAIFAAAABHVuaXQAAAAAADuaygAFAAAAA25pbAMJAAAAAAAAAgUAAAABcgUAAAABcgQAAAAObmV3V2F2ZXNBbW91bnQICQAD7wAAAAEFAAAABHRoaXMAAAAJYXZhaWxhYmxlBAAAAA1uZXdCZHNtQW1vdW50CQAD8AAAAAIFAAAABHRoaXMFAAAAC2Jkc21Bc3NldElkAwkAAGYAAAACCQAAZQAAAAIFAAAADW5ld0Jkc21BbW91bnQFAAAACmJkc21BbW91bnQAAAAAAACYloAFAAAAA25pbAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAA3c6IAkAAaQAAAABBQAAAAt3YXZlc0Ftb3VudAIAAAAFLCBiOiAJAAGkAAAAAQUAAAAKYmRzbUFtb3VudAIAAAAHdyBuZXc6IAkAAaQAAAABBQAAAA5uZXdXYXZlc0Ftb3VudAIAAAAJLCBiIG5ldzogCQABpAAAAAEFAAAADW5ld0Jkc21BbW91bnQJAAACAAAAAQIAAAAHYmFkIHJlcQAAAAFpAQAAAAVjYWxsMQAAAAAEAAAAAXIJAAP8AAAABAUAAAAEdGhpcwIAAAAFY2FsbDIFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFyBQAAAAFyBQAAAANuaWwJAAACAAAAAQIAAAAHYmFkIHJlcQAAAAFpAQAAAAVjYWxsMgAAAAAEAAAAAXIJAAP8AAAABAUAAAAEdGhpcwIAAAAFY2FsbDEFAAAAA25pbAUAAAADbmlsAwkAAAAAAAACBQAAAAFyBQAAAAFyBQAAAANuaWwJAAACAAAAAQIAAAAHYmFkIHJlcQAAAAC7nraY", "height": 1900935, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 98MFMy9g77h9tEmA6gGuG9P4tSPkVaibrLe3VCBPZvDR Next: none Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let bdsmAssetId = base58'6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g'
5+
6+let MOTD = ""
57
68 let bdmsSC = base58'3PG2vMhK5CPqsCDodvLGzQ84QkoHXCJ3oNP'
79
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let bdsmAssetId = base58'6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g'
5+
6+let MOTD = ""
57
68 let bdmsSC = base58'3PG2vMhK5CPqsCDodvLGzQ84QkoHXCJ3oNP'
79
810 @Callable(i)
911 func bdsm () = {
1012 let wavesAmount = wavesBalance(this).available
1113 let bdsmAmount = assetBalance(this, bdsmAssetId)
1214 let r = invoke(Address(bdmsSC), "buyNsbt", nil, [AttachedPayment(unit, 1000000000)])
1315 if ((r == r))
1416 then {
1517 let newWavesAmount = wavesBalance(this).available
1618 let newBdsmAmount = assetBalance(this, bdsmAssetId)
1719 if (((newBdsmAmount - bdsmAmount) > 10000000))
1820 then nil
1921 else throw(((((((("w: " + toString(wavesAmount)) + ", b: ") + toString(bdsmAmount)) + "w new: ") + toString(newWavesAmount)) + ", b new: ") + toString(newBdsmAmount)))
2022 }
2123 else throw("bad req")
2224 }
2325
2426
2527
2628 @Callable(i)
2729 func call1 () = {
2830 let r = invoke(this, "call2", nil, nil)
2931 if ((r == r))
3032 then nil
3133 else throw("bad req")
3234 }
3335
3436
3537
3638 @Callable(i)
3739 func call2 () = {
3840 let r = invoke(this, "call1", nil, nil)
3941 if ((r == r))
4042 then nil
4143 else throw("bad req")
4244 }
4345
4446

github/deemru/w8io/026f985 
19.90 ms