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