tx · 8QiuDyt5nEf5fySU4Riqi2XZNkbGAXKXEqWBKKhXED82 3Mq5upPvyutNuEDeYttuzZfQHv4Y4uXuvv5: -0.05000000 Waves 2022.01.11 11:27 [1874046] smart account 3Mq5upPvyutNuEDeYttuzZfQHv4Y4uXuvv5 > SELF 0.00000000 Waves
{ "type": 13, "id": "8QiuDyt5nEf5fySU4Riqi2XZNkbGAXKXEqWBKKhXED82", "fee": 5000000, "feeAssetId": null, "timestamp": 1641889677825, "version": 2, "chainId": 84, "sender": "3Mq5upPvyutNuEDeYttuzZfQHv4Y4uXuvv5", "senderPublicKey": "97jE6RtnPXGL5TBusvVdFPvxKvHs6wgfQhjd2MphH8ot", "proofs": [ "2bnYh8fkVxkLZhyugtqJ8F6tBPmi8ySzQ3xFck8m6qVGycPviCxpQWNn98B1LiJccAr6TzJjtbS9oreTK1tWdRpv" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAADcnVuAAAAAAQAAAAIbmV3TGVhc2UJAAREAAAAAgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVOi0zNs2eAuhTNglVtNMNj9Q2yyAo9nUjAAAAAAABfXhAAkABEwAAAACBQAAAAhuZXdMZWFzZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlVS5So", "height": 1874046, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CBBSFCGjHnrnBm2hX4gjtuATQrrnW2VfHyHq5h2g5iB5 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let swopfiDapp = base58'3N71TS4RSqLDJgLw2h9cdwUwhfQ7aBoaFb1' | |
5 | - | ||
6 | - | let swopVote = base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ' | |
7 | - | ||
8 | - | let usdnId = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
9 | - | ||
10 | - | @Callable(i) | |
11 | - | func runExchange () = { | |
12 | - | let $t0304379 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
13 | - | let pmtAmount = $t0304379._1 | |
14 | - | let pmtAssetId = $t0304379._2 | |
15 | - | let payment = AttachedPayment(pmtAssetId, pmtAmount) | |
16 | - | let startBalance = assetBalance(this, usdnId) | |
17 | - | if ((startBalance == startBalance)) | |
18 | - | then { | |
19 | - | let r = invoke(Address(swopfiDapp), "exchange", [1], [payment]) | |
20 | - | if ((r == r)) | |
21 | - | then { | |
22 | - | let diff = (assetBalance(this, usdnId) - startBalance) | |
23 | - | if ((diff == diff)) | |
24 | - | then [ScriptTransfer(i.caller, diff, usdnId)] | |
25 | - | else throw("Strict value is not equal to itself.") | |
26 | - | } | |
27 | - | else throw("Strict value is not equal to itself.") | |
28 | - | } | |
29 | - | else throw("Strict value is not equal to itself.") | |
30 | - | } | |
31 | - | ||
32 | 4 | ||
33 | 5 | ||
34 | 6 | @Callable(i) | |
35 | - | func runVote () = { | |
36 | - | let poolVotePools = ["3N3J2dJA73awbzbP9dBP9JtEwENAxZQArLw", "3MwSwddpJFhXrV8msWWr52bP4UBrtFieVEb"] | |
37 | - | let poolVoteVotes = [89925229, 10000000] | |
38 | - | let r = invoke(Address(swopVote), "votePoolWeight", [poolVotePools, poolVoteVotes], nil) | |
39 | - | if ((r == r)) | |
40 | - | then nil | |
41 | - | else throw("Strict value is not equal to itself.") | |
7 | + | func run () = { | |
8 | + | let newLease = Lease(Address(base58'3NB8X8eM4GaEGFfUWh6wVRVi62XCnDnVwC7'), 100000000) | |
9 | + | [newLease] | |
42 | 10 | } | |
43 | 11 | ||
44 | 12 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let swopfiDapp = base58'3N71TS4RSqLDJgLw2h9cdwUwhfQ7aBoaFb1' | |
5 | - | ||
6 | - | let swopVote = base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ' | |
7 | - | ||
8 | - | let usdnId = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
9 | - | ||
10 | - | @Callable(i) | |
11 | - | func runExchange () = { | |
12 | - | let $t0304379 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
13 | - | let pmtAmount = $t0304379._1 | |
14 | - | let pmtAssetId = $t0304379._2 | |
15 | - | let payment = AttachedPayment(pmtAssetId, pmtAmount) | |
16 | - | let startBalance = assetBalance(this, usdnId) | |
17 | - | if ((startBalance == startBalance)) | |
18 | - | then { | |
19 | - | let r = invoke(Address(swopfiDapp), "exchange", [1], [payment]) | |
20 | - | if ((r == r)) | |
21 | - | then { | |
22 | - | let diff = (assetBalance(this, usdnId) - startBalance) | |
23 | - | if ((diff == diff)) | |
24 | - | then [ScriptTransfer(i.caller, diff, usdnId)] | |
25 | - | else throw("Strict value is not equal to itself.") | |
26 | - | } | |
27 | - | else throw("Strict value is not equal to itself.") | |
28 | - | } | |
29 | - | else throw("Strict value is not equal to itself.") | |
30 | - | } | |
31 | - | ||
32 | 4 | ||
33 | 5 | ||
34 | 6 | @Callable(i) | |
35 | - | func runVote () = { | |
36 | - | let poolVotePools = ["3N3J2dJA73awbzbP9dBP9JtEwENAxZQArLw", "3MwSwddpJFhXrV8msWWr52bP4UBrtFieVEb"] | |
37 | - | let poolVoteVotes = [89925229, 10000000] | |
38 | - | let r = invoke(Address(swopVote), "votePoolWeight", [poolVotePools, poolVoteVotes], nil) | |
39 | - | if ((r == r)) | |
40 | - | then nil | |
41 | - | else throw("Strict value is not equal to itself.") | |
7 | + | func run () = { | |
8 | + | let newLease = Lease(Address(base58'3NB8X8eM4GaEGFfUWh6wVRVi62XCnDnVwC7'), 100000000) | |
9 | + | [newLease] | |
42 | 10 | } | |
43 | 11 | ||
44 | 12 | ||
45 | 13 | @Verifier(tx) | |
46 | 14 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
47 | 15 |
github/deemru/w8io/026f985 19.03 ms ◑