tx · FqsdxUHBXBqFKyt8ngPftNKSZEoChGznKVvzfwt8n5Dy 3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9: -0.01400000 Waves 2022.07.27 14:31 [2158167] smart account 3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9 > SELF 0.00000000 Waves
{ "type": 13, "id": "FqsdxUHBXBqFKyt8ngPftNKSZEoChGznKVvzfwt8n5Dy", "fee": 1400000, "feeAssetId": null, "timestamp": 1658921509329, "version": 2, "chainId": 84, "sender": "3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9", "senderPublicKey": "8oL7nu18BhijZNKwmxWzaUpmNrA48i32oeCZiqKEKMYh", "proofs": [ "5Fa5vu2Jumm7JrPdbn56owAa3W6g2dvMHmaTc1iYy4yYTCkKQSiwp7TnqePiTUToKMb6HnDiCC6hpEbTkGCBXkGm" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgASABIAAAAABgAAAAALVVNUTkFzc2V0SUQBAAAAIN0RNjT0JhkV/PqqEOeuHYh00ore/OqX8thpQ4wtl1rFAAAAAAtVU0RUQXNzZXRJRAEAAAAgX1dpGMgKJ4Em8VuX7cTsTfnCu1nLEhiLhGCgX6b3/PMAAAAAE0lzc3VlVVNUTkZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIJlGKrAhJUXwk0JOfIynzOy+/80qLSj42YjgDuQyB58vAAAAAA5taW5pbXVtTGVhc2luZwAAAAAAAJiWgAAAAAAEdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAlUb3RhbHR4bnMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAAAAAAJdG90YWx0eG5zCQAAZAAAAAIFAAAABHR4bnMAAAAAAAAAAAEAAAAEAAAAAWkBAAAACUxlYXNpbmdUTgAAAAAEAAAAA3BtdAMJ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0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXn6PpQ+", "height": 2158167, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2G17Z6qfCwpFSbKzZmqa7JeWSRgd6aQzpRVBMjG2qRnn Next: Cjwp5zv9Nqow6y6fJ49GhgQigKtLCE5h6tBvZAxcignL Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | let currentKey = toBase58String(i.caller.bytes) | |
27 | 27 | let txnId = toBase58String(i.transactionId) | |
28 | 28 | let NewLeasingAmount = pmt.amount | |
29 | + | let Leasing = Lease(addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp'), NewLeasingAmount) | |
30 | + | let LeaseId = calculateLeaseId(Leasing) | |
29 | 31 | let leasetxns = match getInteger(this, "Total_Leasers") { | |
30 | 32 | case b: Int => | |
31 | 33 | b | |
53 | 55 | then throw("Please Attach minimum 1000 TN To Start Leasing.") | |
54 | 56 | else if ((UserNoOfDeposits == 1)) | |
55 | 57 | then throw("You Already Have an Active Leasing, Please Wait until Mature.") | |
56 | - | else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), | |
58 | + | else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), BinaryEntry(("Lease_Txn_id_" + currentKey), LeaseId), StringEntry("message", "<h1>TN Leased to Tradecoin Node Successfully!</h1><br>"), Leasing] | |
57 | 59 | } | |
58 | 60 | ||
59 | 61 | ||
76 | 78 | then throw((("Please Attach Exact " + toString(fraction(ClaimFee, 1, 100000000))) + " TN As a Claim Fee.")) | |
77 | 79 | else if ((checkdepositvalue == 0)) | |
78 | 80 | then throw("You Have Already Unleased your TN Amount last time.") | |
79 | - | else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel( | |
81 | + | else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel(toBytes(ChecktxnId))] | |
80 | 82 | } | |
81 | 83 | ||
82 | 84 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let USTNAssetID = base58'FsxKknTc7bt27AFipyH42NGYojpgXA3KwAfXSNZJkBfz' | |
5 | 5 | ||
6 | 6 | let USDTAssetID = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4' | |
7 | 7 | ||
8 | 8 | let IssueUSTNFeeAddress = addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp') | |
9 | 9 | ||
10 | 10 | let minimumLeasing = 10000000 | |
11 | 11 | ||
12 | 12 | let txns = match getInteger(this, "Totaltxns") { | |
13 | 13 | case a: Int => | |
14 | 14 | a | |
15 | 15 | case _ => | |
16 | 16 | 0 | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | let totaltxns = (txns + 1) | |
20 | 20 | ||
21 | 21 | @Callable(i) | |
22 | 22 | func LeasingTN () = { | |
23 | 23 | let pmt = if ((size(i.payments) == 1)) | |
24 | 24 | then i.payments[0] | |
25 | 25 | else throw("No Payments Attached Please Attach TN Asset Only.") | |
26 | 26 | let currentKey = toBase58String(i.caller.bytes) | |
27 | 27 | let txnId = toBase58String(i.transactionId) | |
28 | 28 | let NewLeasingAmount = pmt.amount | |
29 | + | let Leasing = Lease(addressFromPublicKey(base58'BKKS9b1LbvgamxQn5mTU2qkmZnD2obhf5xeb5NNk8Fqp'), NewLeasingAmount) | |
30 | + | let LeaseId = calculateLeaseId(Leasing) | |
29 | 31 | let leasetxns = match getInteger(this, "Total_Leasers") { | |
30 | 32 | case b: Int => | |
31 | 33 | b | |
32 | 34 | case _ => | |
33 | 35 | 0 | |
34 | 36 | } | |
35 | 37 | let totalleasetxns = (leasetxns + 1) | |
36 | 38 | let PreviousLeasedTN = match getInteger(this, "Total_Leased_TN:") { | |
37 | 39 | case a: Int => | |
38 | 40 | a | |
39 | 41 | case _ => | |
40 | 42 | 0 | |
41 | 43 | } | |
42 | 44 | let TotalLeasedTN = (PreviousLeasedTN + NewLeasingAmount) | |
43 | 45 | let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) { | |
44 | 46 | case a: Int => | |
45 | 47 | a | |
46 | 48 | case _ => | |
47 | 49 | 0 | |
48 | 50 | } | |
49 | 51 | let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1) | |
50 | 52 | if (isDefined(pmt.assetId)) | |
51 | 53 | then throw("Incorrect asset attached, please attach TN.") | |
52 | 54 | else if ((minimumLeasing > pmt.amount)) | |
53 | 55 | then throw("Please Attach minimum 1000 TN To Start Leasing.") | |
54 | 56 | else if ((UserNoOfDeposits == 1)) | |
55 | 57 | then throw("You Already Have an Active Leasing, Please Wait until Mature.") | |
56 | - | else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), | |
58 | + | else [IntegerEntry(("No_Of_Deposits_" + currentKey), SumpupofUserNoOfDeposits), IntegerEntry(("Leasing_height_Of_" + currentKey), height), IntegerEntry("ActiveLeasers", totalleasetxns), IntegerEntry("Total_Leased_TN:", TotalLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), NewLeasingAmount), BinaryEntry(("Lease_Txn_id_" + currentKey), LeaseId), StringEntry("message", "<h1>TN Leased to Tradecoin Node Successfully!</h1><br>"), Leasing] | |
57 | 59 | } | |
58 | 60 | ||
59 | 61 | ||
60 | 62 | ||
61 | 63 | @Callable(i) | |
62 | 64 | func UnLeasingTN () = { | |
63 | 65 | let pmt = if ((size(i.payments) == 1)) | |
64 | 66 | then i.payments[0] | |
65 | 67 | else throw("No Payments Attached Please Attach TN Asset Only.") | |
66 | 68 | let currentKey = toBase58String(i.caller.bytes) | |
67 | 69 | let ClaimFee = 100000000 | |
68 | 70 | let checkdepositvalue = getIntegerValue(this, ("No_Of_Deposits_" + currentKey)) | |
69 | 71 | let CheckLeasingHeight = getIntegerValue(this, ("Leasing_height_Of_" + currentKey)) | |
70 | 72 | let Checktotalleasetxns = getIntegerValue(this, "ActiveLeasers") | |
71 | 73 | let CheckTotalLeasedTN = getIntegerValue(this, "Total_Leased_TN:") | |
72 | 74 | let CheckLeasingAmount = getIntegerValue(this, ("Lease_Amount_" + currentKey)) | |
73 | 75 | let UpdatedLeasedTN = (CheckTotalLeasedTN - CheckLeasingAmount) | |
74 | 76 | let ChecktxnId = getStringValue(this, ("Lease_Txn_id_" + currentKey)) | |
75 | 77 | if ((pmt.amount != ClaimFee)) | |
76 | 78 | then throw((("Please Attach Exact " + toString(fraction(ClaimFee, 1, 100000000))) + " TN As a Claim Fee.")) | |
77 | 79 | else if ((checkdepositvalue == 0)) | |
78 | 80 | then throw("You Have Already Unleased your TN Amount last time.") | |
79 | - | else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel( | |
81 | + | else [IntegerEntry(("No_Of_Deposits_" + currentKey), 0), DeleteEntry(("Leasing_height_Of_" + currentKey)), IntegerEntry("ActiveLeasers", (Checktotalleasetxns - 1)), IntegerEntry("Total_Leased_TN:", UpdatedLeasedTN), IntegerEntry(("Lease_Amount_" + currentKey), 0), DeleteEntry(("Lease_Txn_id_" + currentKey)), StringEntry("message", "<h1>TN Unleased from Tradecoin Node Successfully!</h1><br>"), LeaseCancel(toBytes(ChecktxnId))] | |
80 | 82 | } | |
81 | 83 | ||
82 | 84 | ||
83 | 85 | ||
84 | 86 | @Callable(i) | |
85 | 87 | func IssueUSTN () = { | |
86 | 88 | let pmt = if ((size(i.payments) == 1)) | |
87 | 89 | then i.payments[0] | |
88 | 90 | else throw((("No Payments Attached Please Attach " + toBase58String(USDTAssetID)) + " Asset Only.")) | |
89 | 91 | let currentKey = toBase58String(i.caller.bytes) | |
90 | 92 | let NewUSTNToUser = pmt.amount | |
91 | 93 | let PreviousIssuedUSTN = match getInteger(this, "Total_Issued_USTN:") { | |
92 | 94 | case a: Int => | |
93 | 95 | a | |
94 | 96 | case _ => | |
95 | 97 | 0 | |
96 | 98 | } | |
97 | 99 | let TotalIssuedUSTN = (PreviousIssuedUSTN + NewUSTNToUser) | |
98 | 100 | let PreviousUSTNReserveValue = match getInteger(this, "Total_USTN_Reserve_In_USDT:") { | |
99 | 101 | case a: Int => | |
100 | 102 | a | |
101 | 103 | case _ => | |
102 | 104 | 0 | |
103 | 105 | } | |
104 | 106 | let USTNReserveValue = (PreviousUSTNReserveValue + pmt.amount) | |
105 | 107 | if ((pmt.assetId != USDTAssetID)) | |
106 | 108 | then throw("Incorrect asset attached, please attach USDT.") | |
107 | 109 | else if ((10000 > pmt.amount)) | |
108 | 110 | then throw("Please Attach minimum 0.01 USDT To Issue USTN Asset.") | |
109 | 111 | else [IntegerEntry("Total_Issued_USTN:", TotalIssuedUSTN), IntegerEntry("Total_USTN_Reserve_In_USDT:", USTNReserveValue), IntegerEntry("Totaltxns", totaltxns), StringEntry("message", "<h1>USTN Issued Successfully!</h1><br>"), Reissue(USTNAssetID, NewUSTNToUser, true), ScriptTransfer(i.caller, NewUSTNToUser, USTNAssetID)] | |
110 | 112 | } | |
111 | 113 | ||
112 | 114 | ||
113 | 115 | ||
114 | 116 | @Callable(i) | |
115 | 117 | func Liquidate () = { | |
116 | 118 | let currentKey = toBase58String(i.callerPublicKey) | |
117 | 119 | let pmt = if ((size(i.payments) == 1)) | |
118 | 120 | then i.payments[0] | |
119 | 121 | else throw((("No Payments Attached Please Attach " + toBase58String(USTNAssetID)) + " Asset Only.")) | |
120 | 122 | let PreviousIssuedUSTN = getIntegerValue(this, "Total_Issued_USTN:") | |
121 | 123 | let PreviousBurnedUSTN = match getInteger(this, "Total_Burned_USTN:") { | |
122 | 124 | case a: Int => | |
123 | 125 | a | |
124 | 126 | case _ => | |
125 | 127 | 0 | |
126 | 128 | } | |
127 | 129 | let TotalBurnedUSTN = (PreviousBurnedUSTN + pmt.amount) | |
128 | 130 | let TotalIssuedUSTN = (PreviousIssuedUSTN - pmt.amount) | |
129 | 131 | let PreviousUSTNReserveValue = getIntegerValue(this, "Total_USTN_Reserve_In_USDT:") | |
130 | 132 | let calculateburnvalue = pmt.amount | |
131 | 133 | let USTNReserveValue = (PreviousUSTNReserveValue - calculateburnvalue) | |
132 | 134 | let fee = match getInteger(this, "Total_Fee_Collected") { | |
133 | 135 | case a: Int => | |
134 | 136 | a | |
135 | 137 | case _ => | |
136 | 138 | 0 | |
137 | 139 | } | |
138 | 140 | let FeesCharged = fraction(calculateburnvalue, 1, 100) | |
139 | 141 | let totalfee = (fee + FeesCharged) | |
140 | 142 | if ((pmt.assetId != USTNAssetID)) | |
141 | 143 | then throw((("Kindly Deposit Only " + toBase58String(USTNAssetID)) + " (USTN).")) | |
142 | 144 | else if ((10000 > pmt.amount)) | |
143 | 145 | then throw("Attach Amount must be greater than or equal to 0.01 USTN.") | |
144 | 146 | else [Burn(USTNAssetID, pmt.amount), IntegerEntry("Totaltxns", totaltxns), IntegerEntry("Total_Issued_USTN:", TotalIssuedUSTN), IntegerEntry("Total_Fee_Collected", totalfee), IntegerEntry("Total_Burned_USTN:", TotalBurnedUSTN), IntegerEntry("Total_USTN_Reserve_In_USDT:", USTNReserveValue), StringEntry("message", "<h1>USTN Liquidated Successfully!</h1><br>"), ScriptTransfer(i.caller, (calculateburnvalue - FeesCharged), USDTAssetID), ScriptTransfer(IssueUSTNFeeAddress, FeesCharged, USDTAssetID)] | |
145 | 147 | } | |
146 | 148 | ||
147 | 149 | ||
148 | 150 | @Verifier(tx) | |
149 | 151 | func verify () = match tx { | |
150 | 152 | case _ => | |
151 | 153 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
152 | 154 | } | |
153 | 155 |
github/deemru/w8io/169f3d6 32.58 ms ◑