tx · CVEo29mg6Rkhyr5oqb34rMgt3bDwPvqfrKMqCpiTbMVB 3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9: -0.01400000 Waves 2022.07.27 16:38 [2158287] smart account 3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9 > SELF 0.00000000 Waves
{ "type": 13, "id": "CVEo29mg6Rkhyr5oqb34rMgt3bDwPvqfrKMqCpiTbMVB", "fee": 1400000, "feeAssetId": null, "timestamp": 1658929140210, "version": 2, "chainId": 84, "sender": "3MwJmgmMVD4KVZrhhAvmy3ufvDX9TN8xKa9", "senderPublicKey": "8oL7nu18BhijZNKwmxWzaUpmNrA48i32oeCZiqKEKMYh", "proofs": [ "3JCQQ7qdpNoCrPzyAR6ikfJJ48SFpK5vNe7KR9sE3WRGYcAxwk9syGvuYinoUb1uTE6uMbxNufmNiHizviPPBMbK" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgASABIAAAAABgAAAAALVVNUTkFzc2V0SUQBAAAAIN0RNjT0JhkV/PqqEOeuHYh00ore/OqX8thpQ4wtl1rFAAAAAAtVU0RUQXNzZXRJRAEAAAAgX1dpGMgKJ4Em8VuX7cTsTfnCu1nLEhiLhGCgX6b3/PMAAAAAE0lzc3VlVVNUTkZlZUFkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEBAAAAIJlGKrAhJUXwk0JOfIynzOy+/80qLSj42YjgDuQyB58vAAAAAA5taW5pbXVtTGVhc2luZwAAAAAAAJiWgAAAAAAEdHhucwQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAAAlUb3RhbHR4bnMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAAAAAAJdG90YWx0eG5zCQAAZAAAAAIFAAAABHR4bnMAAAAAAAAAAAEAAAAEAAAAAWkBAAAACUxlYXNpbmdUTgAAAAAEAAAAA3BtdAM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c2VuZGVyUHVibGljS2V5Tuvf9w==", "height": 2158287, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3cEAcvhwpdJb4tHpHHUg62dvtaj3NBzuMVkuMZR1xLQQ Next: 6nAQTJK46ULnApJGHEUrRwidLqbdvjy6ukjTB2RvbLUd 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' | |
29 | + | let Leasing = Lease(addressFromPublicKey(base58'28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t'), NewLeasingAmount) | |
30 | 30 | let LeaseId = calculateLeaseId(Leasing) | |
31 | - | let leasetxns = match getInteger(this, " | |
31 | + | let leasetxns = match getInteger(this, "ActiveLeasers") { | |
32 | 32 | case b: Int => | |
33 | 33 | b | |
34 | 34 | case _ => | |
66 | 66 | then i.payments[0] | |
67 | 67 | else throw("No Payments Attached Please Attach TN Asset Only.") | |
68 | 68 | let currentKey = toBase58String(i.caller.bytes) | |
69 | - | let ClaimFee = | |
69 | + | let ClaimFee = 100000 | |
70 | 70 | let checkdepositvalue = getIntegerValue(this, ("No_Of_Deposits_" + currentKey)) | |
71 | 71 | let CheckLeasingHeight = getIntegerValue(this, ("Leasing_height_Of_" + currentKey)) | |
72 | 72 | let Checktotalleasetxns = getIntegerValue(this, "ActiveLeasers") | |
79 | 79 | else if ((checkdepositvalue == 0)) | |
80 | 80 | then throw("You Have Already Unleased your TN Amount last time.") | |
81 | 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(ChecktxnId)] | |
82 | - | } | |
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | @Callable(i) | |
87 | - | func Replace () = { | |
88 | - | let currentKey = toBase58String(i.caller.bytes) | |
89 | - | [DeleteEntry("Lease_Txn_id_3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV"), BinaryEntry(("Lease_Txn_id_" + currentKey), toBytes("HbYLGNYq7vk15WbgA38GV5ze21wAtAvhkB6a73nsRTq6"))] | |
90 | 82 | } | |
91 | 83 | ||
92 | 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' | |
29 | + | let Leasing = Lease(addressFromPublicKey(base58'28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t'), NewLeasingAmount) | |
30 | 30 | let LeaseId = calculateLeaseId(Leasing) | |
31 | - | let leasetxns = match getInteger(this, " | |
31 | + | let leasetxns = match getInteger(this, "ActiveLeasers") { | |
32 | 32 | case b: Int => | |
33 | 33 | b | |
34 | 34 | case _ => | |
35 | 35 | 0 | |
36 | 36 | } | |
37 | 37 | let totalleasetxns = (leasetxns + 1) | |
38 | 38 | let PreviousLeasedTN = match getInteger(this, "Total_Leased_TN:") { | |
39 | 39 | case a: Int => | |
40 | 40 | a | |
41 | 41 | case _ => | |
42 | 42 | 0 | |
43 | 43 | } | |
44 | 44 | let TotalLeasedTN = (PreviousLeasedTN + NewLeasingAmount) | |
45 | 45 | let UserNoOfDeposits = match getInteger(this, ("No_Of_Deposits_" + currentKey)) { | |
46 | 46 | case a: Int => | |
47 | 47 | a | |
48 | 48 | case _ => | |
49 | 49 | 0 | |
50 | 50 | } | |
51 | 51 | let SumpupofUserNoOfDeposits = (UserNoOfDeposits + 1) | |
52 | 52 | if (isDefined(pmt.assetId)) | |
53 | 53 | then throw("Incorrect asset attached, please attach TN.") | |
54 | 54 | else if ((minimumLeasing > pmt.amount)) | |
55 | 55 | then throw("Please Attach minimum 1000 TN To Start Leasing.") | |
56 | 56 | else if ((UserNoOfDeposits == 1)) | |
57 | 57 | then throw("You Already Have an Active Leasing, Please Wait until Mature.") | |
58 | 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] | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Callable(i) | |
64 | 64 | func UnLeasingTN () = { | |
65 | 65 | let pmt = if ((size(i.payments) == 1)) | |
66 | 66 | then i.payments[0] | |
67 | 67 | else throw("No Payments Attached Please Attach TN Asset Only.") | |
68 | 68 | let currentKey = toBase58String(i.caller.bytes) | |
69 | - | let ClaimFee = | |
69 | + | let ClaimFee = 100000 | |
70 | 70 | let checkdepositvalue = getIntegerValue(this, ("No_Of_Deposits_" + currentKey)) | |
71 | 71 | let CheckLeasingHeight = getIntegerValue(this, ("Leasing_height_Of_" + currentKey)) | |
72 | 72 | let Checktotalleasetxns = getIntegerValue(this, "ActiveLeasers") | |
73 | 73 | let CheckTotalLeasedTN = getIntegerValue(this, "Total_Leased_TN:") | |
74 | 74 | let CheckLeasingAmount = getIntegerValue(this, ("Lease_Amount_" + currentKey)) | |
75 | 75 | let UpdatedLeasedTN = (CheckTotalLeasedTN - CheckLeasingAmount) | |
76 | 76 | let ChecktxnId = getBinaryValue(this, ("Lease_Txn_id_" + currentKey)) | |
77 | 77 | if ((pmt.amount != ClaimFee)) | |
78 | 78 | then throw((("Please Attach Exact " + toString(fraction(ClaimFee, 1, 100000000))) + " TN As a Claim Fee.")) | |
79 | 79 | else if ((checkdepositvalue == 0)) | |
80 | 80 | then throw("You Have Already Unleased your TN Amount last time.") | |
81 | 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(ChecktxnId)] | |
82 | - | } | |
83 | - | ||
84 | - | ||
85 | - | ||
86 | - | @Callable(i) | |
87 | - | func Replace () = { | |
88 | - | let currentKey = toBase58String(i.caller.bytes) | |
89 | - | [DeleteEntry("Lease_Txn_id_3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV"), BinaryEntry(("Lease_Txn_id_" + currentKey), toBytes("HbYLGNYq7vk15WbgA38GV5ze21wAtAvhkB6a73nsRTq6"))] | |
90 | 82 | } | |
91 | 83 | ||
92 | 84 | ||
93 | 85 | ||
94 | 86 | @Callable(i) | |
95 | 87 | func IssueUSTN () = { | |
96 | 88 | let pmt = if ((size(i.payments) == 1)) | |
97 | 89 | then i.payments[0] | |
98 | 90 | else throw((("No Payments Attached Please Attach " + toBase58String(USDTAssetID)) + " Asset Only.")) | |
99 | 91 | let currentKey = toBase58String(i.caller.bytes) | |
100 | 92 | let NewUSTNToUser = pmt.amount | |
101 | 93 | let PreviousIssuedUSTN = match getInteger(this, "Total_Issued_USTN:") { | |
102 | 94 | case a: Int => | |
103 | 95 | a | |
104 | 96 | case _ => | |
105 | 97 | 0 | |
106 | 98 | } | |
107 | 99 | let TotalIssuedUSTN = (PreviousIssuedUSTN + NewUSTNToUser) | |
108 | 100 | let PreviousUSTNReserveValue = match getInteger(this, "Total_USTN_Reserve_In_USDT:") { | |
109 | 101 | case a: Int => | |
110 | 102 | a | |
111 | 103 | case _ => | |
112 | 104 | 0 | |
113 | 105 | } | |
114 | 106 | let USTNReserveValue = (PreviousUSTNReserveValue + pmt.amount) | |
115 | 107 | if ((pmt.assetId != USDTAssetID)) | |
116 | 108 | then throw("Incorrect asset attached, please attach USDT.") | |
117 | 109 | else if ((10000 > pmt.amount)) | |
118 | 110 | then throw("Please Attach minimum 0.01 USDT To Issue USTN Asset.") | |
119 | 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)] | |
120 | 112 | } | |
121 | 113 | ||
122 | 114 | ||
123 | 115 | ||
124 | 116 | @Callable(i) | |
125 | 117 | func Liquidate () = { | |
126 | 118 | let currentKey = toBase58String(i.callerPublicKey) | |
127 | 119 | let pmt = if ((size(i.payments) == 1)) | |
128 | 120 | then i.payments[0] | |
129 | 121 | else throw((("No Payments Attached Please Attach " + toBase58String(USTNAssetID)) + " Asset Only.")) | |
130 | 122 | let PreviousIssuedUSTN = getIntegerValue(this, "Total_Issued_USTN:") | |
131 | 123 | let PreviousBurnedUSTN = match getInteger(this, "Total_Burned_USTN:") { | |
132 | 124 | case a: Int => | |
133 | 125 | a | |
134 | 126 | case _ => | |
135 | 127 | 0 | |
136 | 128 | } | |
137 | 129 | let TotalBurnedUSTN = (PreviousBurnedUSTN + pmt.amount) | |
138 | 130 | let TotalIssuedUSTN = (PreviousIssuedUSTN - pmt.amount) | |
139 | 131 | let PreviousUSTNReserveValue = getIntegerValue(this, "Total_USTN_Reserve_In_USDT:") | |
140 | 132 | let calculateburnvalue = pmt.amount | |
141 | 133 | let USTNReserveValue = (PreviousUSTNReserveValue - calculateburnvalue) | |
142 | 134 | let fee = match getInteger(this, "Total_Fee_Collected") { | |
143 | 135 | case a: Int => | |
144 | 136 | a | |
145 | 137 | case _ => | |
146 | 138 | 0 | |
147 | 139 | } | |
148 | 140 | let FeesCharged = fraction(calculateburnvalue, 1, 100) | |
149 | 141 | let totalfee = (fee + FeesCharged) | |
150 | 142 | if ((pmt.assetId != USTNAssetID)) | |
151 | 143 | then throw((("Kindly Deposit Only " + toBase58String(USTNAssetID)) + " (USTN).")) | |
152 | 144 | else if ((10000 > pmt.amount)) | |
153 | 145 | then throw("Attach Amount must be greater than or equal to 0.01 USTN.") | |
154 | 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)] | |
155 | 147 | } | |
156 | 148 | ||
157 | 149 | ||
158 | 150 | @Verifier(tx) | |
159 | 151 | func verify () = match tx { | |
160 | 152 | case _ => | |
161 | 153 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
162 | 154 | } | |
163 | 155 |
github/deemru/w8io/169f3d6 49.17 ms ◑