tx · 3QeVF3DBaScYaVot5kvbWDZr3yndCeE6knweYt7eu3jd

3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx:  -1.00000000 Waves

2022.04.09 14:19 [2000964] smart account 3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx > SELF 0.00000000 Waves

{ "type": 13, "id": "3QeVF3DBaScYaVot5kvbWDZr3yndCeE6knweYt7eu3jd", "fee": 100000000, "feeAssetId": null, "timestamp": 1649503172327, "version": 2, "chainId": 84, "sender": "3Mvjrd9jd9BEQvHoiHnPKR2WqtZnvxopDcx", "senderPublicKey": "B37Jiw5CgfjxqxYgkAGeJpTmiCa4Cb6a9mh9fynZppFR", "proofs": [ "W5dLtfjqSRjj1zbXnNdRvuqRF1pW6vCQ58SuXtPcNVeB7e7yH2Wwn1oxVPjfjPPgZZhGyFhjUGm9TECWuiVngfG" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAgAAAAAHYXNzZXRJZAEAAAAgYdTHJtpm4GwuO67Z7w+Qg9eAml6YMFJTv4sCKXVeLDUAAAAACXVuaXRQcmljZQAAAAAAAAAD6AAAAAEAAAABaQEAAAAHYnV5TEtSVAAAAAEAAAAGYW1vdW50AwkAAGcAAAACCAkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAABoAAAAAgUAAAAJdW5pdFByaWNlBQAAAAZhbW91bnQDCQAAZwAAAAIJAAPwAAAAAgUAAAAEdGhpcwUAAAAHYXNzZXRJZAUAAAAGYW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMFAAAABmFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMJAABoAAAAAgUAAAAGYW1vdW50AAAAAAAAAAPoBQAAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAAgQ2FuJ3QgY2FsbCBvciBub3QgZW5vdWdoIGJhbGFuY2UJAAACAAAAAQIAAAATbm90IGVub3VnaCBwYXltZW50cwAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5bzMcIw==", "height": 2000964, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EQcHPLm8dctLmTrRBKKAzynJnyoa61my9Tko9ynRRnLJ Next: HwUENtquGEUvYKvr9hBhznL2QaLfohnRHSUbeJrc74Qf Diff:
OldNewDifferences
88 @Callable(i)
99 func buyLKRT (amount) = if ((value(i.payments[0]).amount >= (unitPrice * amount)))
1010 then if ((assetBalance(this, assetId) >= amount))
11- then [IntegerEntry(toBase58String(i.caller.bytes), amount), ScriptTransfer(Address(i.caller.bytes), amount, assetId)]
11+ then [IntegerEntry(toBase58String(i.caller.bytes), amount), ScriptTransfer(Address(i.caller.bytes), (amount * 1000), assetId)]
1212 else throw("Can't call or not enough balance")
1313 else throw("not enough payments")
1414
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let assetId = base58'7atjFuUvDnCqsg8uNC5PYEgg3UXAv94St5zuA6vSjMVE'
55
66 let unitPrice = 1000
77
88 @Callable(i)
99 func buyLKRT (amount) = if ((value(i.payments[0]).amount >= (unitPrice * amount)))
1010 then if ((assetBalance(this, assetId) >= amount))
11- then [IntegerEntry(toBase58String(i.caller.bytes), amount), ScriptTransfer(Address(i.caller.bytes), amount, assetId)]
11+ then [IntegerEntry(toBase58String(i.caller.bytes), amount), ScriptTransfer(Address(i.caller.bytes), (amount * 1000), assetId)]
1212 else throw("Can't call or not enough balance")
1313 else throw("not enough payments")
1414
1515
1616 @Verifier(tx)
1717 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1818

github/deemru/w8io/026f985 
24.07 ms