tx · H7jNsPsXfTMJb3cM3Xz6H2kgg6Xfo3aoKv3xKGP2r76K 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv: -0.01400000 Waves 2021.08.11 19:30 [1653944] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves
{ "type": 13, "id": "H7jNsPsXfTMJb3cM3Xz6H2kgg6Xfo3aoKv3xKGP2r76K", "fee": 1400000, "feeAssetId": null, "timestamp": 1628699486191, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "3kixX2nu7EfBqv4WXjd6VitYozLZ89mrzQ1EBkkb33MKiET7ess6d3cNFXxvYcnohLDb5Wpow9N5PVmnt83qLqBD" ], "script": "base64:AAIEAAAAAAAAAAwIAhIECgIIARIAEgAAAAABAQAAAA9jaGVja1ZvdGluZ1BhaXIAAAABAAAACEFzc2V0SUQxBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAACEFzc2V0SUQxAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUAAAADAAAAAWkBAAAABlZvdGluZwAAAAIAAAAIQXNzZXRJRDEAAAAEZGF5cwQAAAAEcG10MQkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAEcG10MgkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQQAAAARbWF4aW11bXZvdGluZ2RheXMAAAAAAAAAAFoEAAAAAlROAQAAAAAEAAAADUJhbGxldEFzc2V0SUQBAAAAIC1vWwG5neVKbxqEaKeT7hMXlhgC7/FEdjB7WHX3k6igBAAAAAtVU0RUQ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udAkAAAIAAAABAgAAADBBdHRhY2ggQW1vdW50IG11c3QgYmUgZ3JlYXRlciB0aGFuIDAuMDAxIEJhbGxldC4JAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAA1CYWxsZXRBc3NldElECAUAAAADcG10AAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAUVG90YWxfSXNzdWVkX0JhbGxldDoFAAAAEVRvdGFsSXNzdWVkQmFsbGV0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAABtUb3RhbF9CYWxsZXRfUmVzZXJ2ZV9Jbl9UTjoFAAAAEkJhbGxldFJlc2VydmVWYWx1ZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAaQmFsbGV0X0JhY2t1cF9WYWx1ZV9Jbl9UTjoFAAAAEUJhbGxldEJhY2t1cFByaWNlCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAASY2FsY3VsYXRlYnVybnZhbHVlBQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmpgMG2", "height": 1653944, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 48hxMfCL8TNrzrJCnch2GK4WKo7D8AU3xXgnPfFHV3vo Next: 3KfmGv9ecuRNwsYTWDsaZCA1RyUvX5C98ec2LxdYW4XB Diff:
Old | New | Differences | |
---|---|---|---|
27 | 27 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token You want to add to List for Voting.") | |
28 | 28 | else if ((pmt1.assetId != BalletAssetID)) | |
29 | 29 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
30 | - | else if ((pmt2.assetId == TN)) | |
30 | + | else if (if ((pmt1.assetId == BalletAssetID)) | |
31 | + | then (pmt2.assetId == TN) | |
32 | + | else false) | |
31 | 33 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
32 | 34 | else if ((pmt2.assetId == BalletAssetID)) | |
33 | 35 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func checkVotingPair (AssetID1) = match getString(this, AssetID1) { | |
5 | 5 | case a: String => | |
6 | 6 | a | |
7 | 7 | case _ => | |
8 | 8 | "NONE" | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | @Callable(i) | |
13 | 13 | func Voting (AssetID1,days) = { | |
14 | 14 | let pmt1 = value(i.payments[0]) | |
15 | 15 | let pmt2 = value(i.payments[1]) | |
16 | 16 | let maximumvotingdays = 90 | |
17 | 17 | let TN = base58'' | |
18 | 18 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
19 | 19 | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
20 | 20 | let VotingPairExist = checkVotingPair(AssetID1) | |
21 | 21 | let currentKey = toBase58String(i.caller.bytes) | |
22 | 22 | if ((VotingPairExist != "NONE")) | |
23 | 23 | then throw("This Voting Pair already Exist") | |
24 | 24 | else if ((44 > size(AssetID1))) | |
25 | 25 | then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 44 Chars.") | |
26 | 26 | else if ((size(i.payments) != 2)) | |
27 | 27 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token You want to add to List for Voting.") | |
28 | 28 | else if ((pmt1.assetId != BalletAssetID)) | |
29 | 29 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
30 | - | else if ((pmt2.assetId == TN)) | |
30 | + | else if (if ((pmt1.assetId == BalletAssetID)) | |
31 | + | then (pmt2.assetId == TN) | |
32 | + | else false) | |
31 | 33 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
32 | 34 | else if ((pmt2.assetId == BalletAssetID)) | |
33 | 35 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") | |
34 | 36 | else [StringEntry("TRDToUSDN_Swap_Address", currentKey), IntegerEntry("TRDToUSDN_Swap_Height", height)] | |
35 | 37 | } | |
36 | 38 | ||
37 | 39 | ||
38 | 40 | ||
39 | 41 | @Callable(i) | |
40 | 42 | func IssueBallet () = { | |
41 | 43 | let pmt = value(i.payments[0]) | |
42 | 44 | let currentKey = toBase58String(i.caller.bytes) | |
43 | 45 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
44 | 46 | let PricePerBallet = getIntegerValue(this, "BALLET/TN") | |
45 | 47 | let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet) | |
46 | 48 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
47 | 49 | let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser) | |
48 | 50 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
49 | 51 | let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount) | |
50 | 52 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
51 | 53 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
52 | 54 | let FeeAddress = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene' | |
53 | 55 | if (isDefined(pmt.assetId)) | |
54 | 56 | then throw("Incorrect asset attached, please attach TN.") | |
55 | 57 | else if ((5000000 > pmt.amount)) | |
56 | 58 | then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.") | |
57 | 59 | else [IntegerEntry("Total_Issued_Ballet:", TotalIssuedBallet), IntegerEntry("Total_Ballet_Reserve_In_TN:", BalletReserveValue), IntegerEntry("Ballet_Backup_Value_In_TN:", BalletBackupPrice), StringEntry("message", "<h1>Ballet Issued Successfully!</h1><br>"), Reissue(BalletAssetID, NewBalletToUser, true), ScriptTransfer(i.caller, ((NewBalletToUser * 99) / 100), BalletAssetID), ScriptTransfer(addressFromPublicKey(FeeAddress), ((NewBalletToUser * 1) / 100), BalletAssetID)] | |
58 | 60 | } | |
59 | 61 | ||
60 | 62 | ||
61 | 63 | ||
62 | 64 | @Callable(i) | |
63 | 65 | func Liquidate () = { | |
64 | 66 | let currentKey = toBase58String(i.callerPublicKey) | |
65 | 67 | let pmt = value(i.payments[0]) | |
66 | 68 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
67 | 69 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
68 | 70 | let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount) | |
69 | 71 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
70 | 72 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
71 | 73 | let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000) | |
72 | 74 | let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue) | |
73 | 75 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
74 | 76 | if ((pmt.assetId != BalletAssetID)) | |
75 | 77 | then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
76 | 78 | else if ((100000 > pmt.amount)) | |
77 | 79 | then throw("Attach Amount must be greater than 0.001 Ballet.") | |
78 | 80 | else [Burn(BalletAssetID, pmt.amount), IntegerEntry("Total_Issued_Ballet:", TotalIssuedBallet), IntegerEntry("Total_Ballet_Reserve_In_TN:", BalletReserveValue), IntegerEntry("Ballet_Backup_Value_In_TN:", BalletBackupPrice), ScriptTransfer(i.caller, calculateburnvalue, unit)] | |
79 | 81 | } | |
80 | 82 | ||
81 | 83 | ||
82 | 84 | @Verifier(tx) | |
83 | 85 | func verify () = match tx { | |
84 | 86 | case _ => | |
85 | 87 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
86 | 88 | } | |
87 | 89 |
github/deemru/w8io/169f3d6 33.00 ms ◑![]()