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:
Old | New | | Differences |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func buyLKRT (amount) = if ((value(i.payments[0]).amount >= (unitPrice * amount))) |
---|
10 | 10 | | 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)] |
---|
12 | 12 | | else throw("Can't call or not enough balance") |
---|
13 | 13 | | else throw("not enough payments") |
---|
14 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let assetId = base58'7atjFuUvDnCqsg8uNC5PYEgg3UXAv94St5zuA6vSjMVE' |
---|
5 | 5 | | |
---|
6 | 6 | | let unitPrice = 1000 |
---|
7 | 7 | | |
---|
8 | 8 | | @Callable(i) |
---|
9 | 9 | | func buyLKRT (amount) = if ((value(i.payments[0]).amount >= (unitPrice * amount))) |
---|
10 | 10 | | 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)] |
---|
12 | 12 | | else throw("Can't call or not enough balance") |
---|
13 | 13 | | else throw("not enough payments") |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | @Verifier(tx) |
---|
17 | 17 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
18 | 18 | | |
---|