tx · AGCt9c1SmkiMSdth9fJ51F7F5gu9gPsCZSfMjzmoQDtG 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv: -0.01400000 Waves 2021.12.30 02:08 [1856154] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves
{ "type": 13, "id": "AGCt9c1SmkiMSdth9fJ51F7F5gu9gPsCZSfMjzmoQDtG", "fee": 1400000, "feeAssetId": null, "timestamp": 1640819368176, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "4QUUVXY7nv5P7Jry4H4GMzPqK55DHxYXRpBtHzBVxYoKCDDXXtmvJirYexpp2UhADAhqxMGWNaiD3WfXSqdMeU48" ], "script": "base64:AAIEAAAAAAAACIQIAhIAEgASBAoCCAESAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIGgsKAUESBm9uZWRheRoTCgFCEg5Ob09mRGF5c0Jsb2NrcxoICgFDEgNnYXAaEgoBRBINdm90ZXNyZXF1aXJlZBoRCgFFEgx2b3RpbmdFeHBpcmUaDgoBRhIJZmV0Y2hwYWlyGhEKAUcSDHZvdGluZ3N0YXR1cxoSCgFIEg1hc3NldGluZm9wbXQyGhIKAUkSDWNhbGxlcmFkZHJlc3MaFAoBShIPTmV3Vm90aW5nU3RhdHVzGhMKAUsSDmNoZWNrZW5kaGVpZ2h0Gh4KAUwSGWNoZWNrcGFpcmlzYXZhaWxhYmxlb3Jub3QaFwoBTRISY2hlY2t2b3Rlc3JlcXVpcmVkGhcKAU4SEmNoZWNrdm90ZXNyZWNlaXZlZBoRCgFPEgxWb3RpbmdTdGF0dXMaEQoBUBIMY3VycmVudHZvdGVzGgwKAVESByRtYXRjaDAaBgoBUhIBYRoSCgFTEg1uZXd2b3Rlc2NvdW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AKVm90ZXNfUmVxXwUAAAABdQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAADExpc3RpbmdfRmVlXwUAAAABdQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAADlZvdGluZ19TdGF0dXNfBQAAAAF1CQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAAEsAAAAAgIAAAALVm90ZXNfUmN2ZF8FAAAAAXUFAAAAA25pbAAAAAEAAAACYVMBAAAAAmFUAAAAAAQAAAABUQUAAAACYVMJAAH0AAAAAwgFAAAAAmFTAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYVMAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYVMAAAAPc2VuZGVyUHVibGljS2V5ryYNSQ==", "height": 1856154, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DL8DRQBaDN3GCnmh72MR1NcrnTF6Mze7bEapSzBwzXVE Next: EsS5aGqTU47UGjw3NH7LkjrNCVtmgpa3JmFdHCbEv3Ub Diff:
Old | New | Differences | |
---|---|---|---|
182 | 182 | then throw("Pair is not available in Voting List.") | |
183 | 183 | else if ((VotingStatus != NewVotingStatus)) | |
184 | 184 | then throw("LP Token must be a Whitelisted Token.") | |
185 | - | else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid))] | |
185 | + | else if ((size(("LP_" + EnterAssetID)) > 1)) | |
186 | + | then throw(("LP Token Already Available for " + EnterAssetID)) | |
187 | + | else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid))] | |
186 | 188 | } | |
187 | 189 | ||
188 | 190 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y' | |
7 | 7 | ||
8 | 8 | let CollectBalletFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr') | |
9 | 9 | ||
10 | 10 | let IssueBalletFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr') | |
11 | 11 | ||
12 | 12 | let CollectUSDTSwapFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr') | |
13 | 13 | ||
14 | 14 | let CollectAssetSwapFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr') | |
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func IssueBallet () = { | |
18 | 18 | let pmt = value(i.payments[0]) | |
19 | 19 | let currentKey = toBase58String(i.caller.bytes) | |
20 | 20 | let PricePerBallet = getIntegerValue(this, "BALLET/TN") | |
21 | 21 | let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet) | |
22 | 22 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
23 | 23 | let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser) | |
24 | 24 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
25 | 25 | let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount) | |
26 | 26 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
27 | 27 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
28 | 28 | let FeePercentage = 1 | |
29 | 29 | let BalanceTokensReturnedToUser = (100 - FeePercentage) | |
30 | 30 | if (isDefined(pmt.assetId)) | |
31 | 31 | then throw("Incorrect asset attached, please attach TN.") | |
32 | 32 | else if ((5000000 > pmt.amount)) | |
33 | 33 | then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.") | |
34 | 34 | 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 * BalanceTokensReturnedToUser) / 100), BalletAssetID), ScriptTransfer(IssueBalletFeeAddress, ((NewBalletToUser * FeePercentage) / 100), BalletAssetID)] | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(i) | |
40 | 40 | func Liquidate () = { | |
41 | 41 | let currentKey = toBase58String(i.callerPublicKey) | |
42 | 42 | let pmt = value(i.payments[0]) | |
43 | 43 | let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:") | |
44 | 44 | let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount) | |
45 | 45 | let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:") | |
46 | 46 | let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:") | |
47 | 47 | let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000) | |
48 | 48 | let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue) | |
49 | 49 | let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet) | |
50 | 50 | if ((pmt.assetId != BalletAssetID)) | |
51 | 51 | then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).") | |
52 | 52 | else if ((100000 > pmt.amount)) | |
53 | 53 | then throw("Attach Amount must be greater than 0.001 Ballet.") | |
54 | 54 | else [Burn(BalletAssetID, pmt.amount), IntegerEntry("Total_Issued_Ballet:", TotalIssuedBallet), IntegerEntry("Total_Ballet_Reserve_In_TN:", BalletReserveValue), IntegerEntry("Ballet_Backup_Value_In_TN:", BalletBackupPrice), StringEntry("message", "<h1>Ballet Liquidated Successfully!</h1><br>"), ScriptTransfer(i.caller, calculateburnvalue, unit)] | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | ||
59 | 59 | @Callable(i) | |
60 | 60 | func RegisterPairForVoting (EnterAssetID,days) = { | |
61 | 61 | let pmt1 = value(i.payments[0]) | |
62 | 62 | let pmt2 = value(i.payments[1]) | |
63 | 63 | let maximumvotingdays = 90 | |
64 | 64 | let currentKey = toBase58String(i.caller.bytes) | |
65 | 65 | let TN = !(isDefined(pmt2.assetId)) | |
66 | 66 | let oneday = 1440 | |
67 | 67 | let NoOfDaysBlocks = (oneday * days) | |
68 | 68 | let gap = (NoOfDaysBlocks - 43199) | |
69 | 69 | let votesrequired = ((100000 + ((11574 * gap) / 10000)) * 100000000) | |
70 | 70 | let votingExpire = (height + NoOfDaysBlocks) | |
71 | 71 | let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID)) | |
72 | 72 | let votingstatus = "F" | |
73 | 73 | let assetinfopmt2 = fromBase58String(EnterAssetID) | |
74 | 74 | if ((43 > size(EnterAssetID))) | |
75 | 75 | then throw("Wrong AssetID is Entered for Voting. Please Enter a Valid AssetID. Probably you entered an AssetID less than 43 Chars.") | |
76 | 76 | else if ((29 >= days)) | |
77 | 77 | then throw("Enter no. of days in between 30 to 90.") | |
78 | 78 | else if ((days > maximumvotingdays)) | |
79 | 79 | then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.") | |
80 | 80 | else if ((fetchpair == EnterAssetID)) | |
81 | 81 | then throw("Pair Already Exist in Voting List.") | |
82 | 82 | else if ((size(i.payments) != 2)) | |
83 | 83 | then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token & payment2 = Token you want to List for Voting.") | |
84 | 84 | else if ((pmt1.assetId != BalletAssetID)) | |
85 | 85 | then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.") | |
86 | 86 | else if ((pmt1.amount != 10000000)) | |
87 | 87 | then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only.")) | |
88 | 88 | else if ((pmt2.assetId != assetinfopmt2)) | |
89 | 89 | then throw("Input String & Attached AssetID in payment2 is not matching.") | |
90 | 90 | else if ((TN == true)) | |
91 | 91 | then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].") | |
92 | 92 | else if ((pmt2.assetId == BalletAssetID)) | |
93 | 93 | then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].") | |
94 | 94 | else [StringEntry(("Pair_UV_" + EnterAssetID), EnterAssetID), StringEntry(("Voting_Status_" + EnterAssetID), votingstatus), IntegerEntry(("Voting_SH_" + EnterAssetID), height), IntegerEntry(("Voting_EH_" + EnterAssetID), votingExpire), IntegerEntry(("Voting_Period_" + EnterAssetID), NoOfDaysBlocks), IntegerEntry(("Listing_Fee_" + EnterAssetID), pmt1.amount), IntegerEntry(("Votes_Req_" + EnterAssetID), votesrequired), IntegerEntry(("Votes_Rcvd_" + EnterAssetID), 0), ScriptTransfer(CollectBalletFeeAddress, pmt1.amount, BalletAssetID)] | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | ||
99 | 99 | @Callable(i) | |
100 | 100 | func DoVoting (EnterAssetID) = { | |
101 | 101 | let pmt = if ((size(i.payments) == 1)) | |
102 | 102 | then i.payments[0] | |
103 | 103 | else throw("Ballet Token is required as Attached payment") | |
104 | 104 | let calleraddress = toBase58String(i.caller.bytes) | |
105 | 105 | let NewVotingStatus = "P" | |
106 | 106 | let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID)) | |
107 | 107 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
108 | 108 | let checkvotesrequired = getIntegerValue(this, ("Votes_Req_" + EnterAssetID)) | |
109 | 109 | let checkvotesreceived = getIntegerValue(this, ("Votes_Rcvd_" + EnterAssetID)) | |
110 | 110 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
111 | 111 | let currentvotes = match getInteger(this, ("Votes_Rcvd_" + EnterAssetID)) { | |
112 | 112 | case a: Int => | |
113 | 113 | a | |
114 | 114 | case _ => | |
115 | 115 | 0 | |
116 | 116 | } | |
117 | 117 | let newvotescount = (currentvotes + pmt.amount) | |
118 | 118 | let individualvotes = match getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)) { | |
119 | 119 | case b: Int => | |
120 | 120 | b | |
121 | 121 | case _ => | |
122 | 122 | 0 | |
123 | 123 | } | |
124 | 124 | let individualvotescount = (individualvotes + pmt.amount) | |
125 | 125 | let checkwhitelist = (checkvotesreceived >= checkvotesrequired) | |
126 | 126 | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
127 | 127 | if ((checkpairisavailableornot != EnterAssetID)) | |
128 | 128 | then throw("Pair is not available in Voting List.") | |
129 | 129 | else if ((height > checkendheight)) | |
130 | 130 | then throw((("Voting timeline for " + EnterAssetID) + " is expired.")) | |
131 | 131 | else if ((pmt.assetId != BalletAssetID)) | |
132 | 132 | then throw((("Kindly Attach Only " + toBase58String(BalletAssetID)) + " Token.")) | |
133 | 133 | else if ((VotingStatus == NewVotingStatus)) | |
134 | 134 | then throw((("Voting for " + EnterAssetID) + " pair is completed & it’s available in whitelist.")) | |
135 | 135 | else if (checkwhitelist) | |
136 | 136 | then [StringEntry(("Voting_Status_" + EnterAssetID), NewVotingStatus), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), 0), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), 0), IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0), IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), individualvotescount)] | |
137 | 137 | else [IntegerEntry(("Votes_Rcvd_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), individualvotescount)] | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func WithdrawVotedTokens (EnterAssetID) = { | |
144 | 144 | let pmt = if ((size(i.payments) == 1)) | |
145 | 145 | then i.payments[0] | |
146 | 146 | else throw("0.1 TN Token is required as Attached payment.") | |
147 | 147 | let calleraddress = toBase58String(i.caller.bytes) | |
148 | 148 | let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID)) | |
149 | 149 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
150 | 150 | let checkuservotingbalance = valueOrErrorMessage(getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)), (calleraddress + " Address never voted & exist in list.")) | |
151 | 151 | let pendingblocksforprojectexpire = (checkendheight - height) | |
152 | 152 | if ((checkpairisavailableornot != EnterAssetID)) | |
153 | 153 | then throw("Pair is not available in Voting List.") | |
154 | 154 | else if ((checkendheight > height)) | |
155 | 155 | then throw((("Voting Already Running. You can withdraw your Ballet Token after " + toString(pendingblocksforprojectexpire)) + " blocks")) | |
156 | 156 | else if ((0 >= checkuservotingbalance)) | |
157 | 157 | then throw("You don't have any dues of ballet balance in this Voting Pair.") | |
158 | 158 | else if (isDefined(pmt.assetId)) | |
159 | 159 | then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token") | |
160 | 160 | else if ((pmt.amount != 10000000)) | |
161 | 161 | then throw("Please attach 0.1 TN as a fee to release your token.") | |
162 | 162 | else [IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)] | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(i) | |
168 | 168 | func IssueLPToken (EnterAssetID) = { | |
169 | 169 | let adminrights = valueOrErrorMessage(getString(this, "LP_Admin_Rights"), "LP Admin Rights are Not Included into Smart Contract. Deploy Admin Rights First.") | |
170 | 170 | let calleraddress = toBase58String(i.caller.bytes) | |
171 | 171 | let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token") | |
172 | 172 | let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
173 | 173 | let name = info.name | |
174 | 174 | let decimals = info.decimals | |
175 | 175 | let NewVotingStatus = "P" | |
176 | 176 | let VotingStatus = valueOrErrorMessage(getString(this, ("Voting_Status_" + EnterAssetID)), ("Voting Status is Missing for " + EnterAssetID)) | |
177 | 177 | let LPissue = Issue((("LP-" + name) + "-USDT"), (((("LP-" + name) + "-USDT") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), (1 * pow(10, 0, fraction((decimals + 6), 1, 2), 0, 0, UP)), fraction((decimals + 6), 1, 2), true) | |
178 | 178 | let LPid = calculateAssetId(LPissue) | |
179 | 179 | if ((adminrights != calleraddress)) | |
180 | 180 | then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token.")) | |
181 | 181 | else if ((checkpairisavailableornot != EnterAssetID)) | |
182 | 182 | then throw("Pair is not available in Voting List.") | |
183 | 183 | else if ((VotingStatus != NewVotingStatus)) | |
184 | 184 | then throw("LP Token must be a Whitelisted Token.") | |
185 | - | else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid))] | |
185 | + | else if ((size(("LP_" + EnterAssetID)) > 1)) | |
186 | + | then throw(("LP Token Already Available for " + EnterAssetID)) | |
187 | + | else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid))] | |
186 | 188 | } | |
187 | 189 | ||
188 | 190 | ||
189 | 191 | ||
190 | 192 | @Callable(i) | |
191 | 193 | func SwapAssetToUSDTPairEntry (EnterAssetID) = { | |
192 | 194 | let calleraddress = toBase58String(i.caller.bytes) | |
193 | 195 | let pmt = if ((size(i.payments) == 1)) | |
194 | 196 | then i.payments[0] | |
195 | 197 | else throw("Whitelisted Token is required as Attached payment[1].") | |
196 | 198 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
197 | 199 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
198 | 200 | let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
199 | 201 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) | |
200 | 202 | let newbalanceofUSDT = fraction(CheckUSDTBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount)) | |
201 | 203 | let quantityofpriceasset = (CheckUSDTBalance - newbalanceofUSDT) | |
202 | 204 | let CurrentVotingStatus = "F" | |
203 | 205 | let SwapFee = 3 | |
204 | 206 | let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000) | |
205 | 207 | let userbalancetoreceive = (quantityofpriceasset - SwapFeetoreceive) | |
206 | 208 | let SumupofAssetToUSDTSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) { | |
207 | 209 | case a: Int => | |
208 | 210 | a | |
209 | 211 | case _ => | |
210 | 212 | 0 | |
211 | 213 | } | |
212 | 214 | let NewSumupofAssetToUSDTSwapFee = (SumupofAssetToUSDTSwapFee + SwapFeetoreceive) | |
213 | 215 | let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) { | |
214 | 216 | case a: Int => | |
215 | 217 | a | |
216 | 218 | case _ => | |
217 | 219 | 0 | |
218 | 220 | } | |
219 | 221 | let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount) | |
220 | 222 | let SumupUSDTBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) { | |
221 | 223 | case a: Int => | |
222 | 224 | a | |
223 | 225 | case _ => | |
224 | 226 | 0 | |
225 | 227 | } | |
226 | 228 | let NewSumupofUSDTBalance = (CheckUSDTBalance - quantityofpriceasset) | |
227 | 229 | let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) { | |
228 | 230 | case a: Int => | |
229 | 231 | a | |
230 | 232 | case _ => | |
231 | 233 | 0 | |
232 | 234 | } | |
233 | 235 | let NewTPT = (TOPT + 1) | |
234 | 236 | if ((EnterAssetID == toBase58String(USDTAssetID))) | |
235 | 237 | then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].") | |
236 | 238 | else if ((checkpairisavailableornot != EnterAssetID)) | |
237 | 239 | then throw("Pair is not available in Whitelisted Asset.") | |
238 | 240 | else if ((VotingStatus == CurrentVotingStatus)) | |
239 | 241 | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
240 | 242 | else if ((pmt.assetId == USDTAssetID)) | |
241 | 243 | then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are accepted.") | |
242 | 244 | else if ((pmt.assetId != fromBase58String(EnterAssetID))) | |
243 | 245 | then throw(("Incorrect asset attached, please attach or send " + EnterAssetID)) | |
244 | 246 | else if ((CheckUSDTBalance == 0)) | |
245 | 247 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
246 | 248 | else if ((CheckAssetBalance == 0)) | |
247 | 249 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
248 | 250 | else if ((10000000 > quantityofpriceasset)) | |
249 | 251 | then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 10 dollar atleast.")) | |
250 | 252 | else if ((quantityofpriceasset > CheckUSDTBalance)) | |
251 | 253 | then throw((("Pool Only has a Liquidity of " + toString((CheckUSDTBalance / pow(10, 0, 6, 0, 0, UP)))) + " USDT. Add Liquidity into Pool.")) | |
252 | 254 | else [IntegerEntry(((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewSumupofAssetToUSDTSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewSumupofUSDTBalance), ScriptTransfer(i.caller, userbalancetoreceive, USDTAssetID), ScriptTransfer(CollectUSDTSwapFeeAddress, SwapFeetoreceive, USDTAssetID)] | |
253 | 255 | } | |
254 | 256 | ||
255 | 257 | ||
256 | 258 | ||
257 | 259 | @Callable(i) | |
258 | 260 | func SwapUSDTToAssetPairEntry (EnterAssetID) = { | |
259 | 261 | let calleraddress = toBase58String(i.caller.bytes) | |
260 | 262 | let pmt = if ((size(i.payments) == 1)) | |
261 | 263 | then i.payments[0] | |
262 | 264 | else throw("Only USDT Token is required as an Attached payment[1].") | |
263 | 265 | let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
264 | 266 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) | |
265 | 267 | let newbalanceofAsset = fraction(CheckUSDTBalance, CheckAssetBalance, (CheckUSDTBalance + pmt.amount)) | |
266 | 268 | let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset) | |
267 | 269 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
268 | 270 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
269 | 271 | let CurrentVotingStatus = "F" | |
270 | 272 | let SwapFee = 3 | |
271 | 273 | let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000) | |
272 | 274 | let userbalancetoreceive = (quantityofpriceasset - SwapFeetoreceive) | |
273 | 275 | let SumupofUSDTToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) { | |
274 | 276 | case a: Int => | |
275 | 277 | a | |
276 | 278 | case _ => | |
277 | 279 | 0 | |
278 | 280 | } | |
279 | 281 | let NewSumupofUSDTToAssetSwapFee = (SumupofUSDTToAssetSwapFee + SwapFeetoreceive) | |
280 | 282 | let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) { | |
281 | 283 | case a: Int => | |
282 | 284 | a | |
283 | 285 | case _ => | |
284 | 286 | 0 | |
285 | 287 | } | |
286 | 288 | let NewSumupofAssetBalance = (CheckAssetBalance - quantityofpriceasset) | |
287 | 289 | let SumupUSDTBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) { | |
288 | 290 | case a: Int => | |
289 | 291 | a | |
290 | 292 | case _ => | |
291 | 293 | 0 | |
292 | 294 | } | |
293 | 295 | let NewSumupofUSDTBalance = (CheckUSDTBalance + pmt.amount) | |
294 | 296 | let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) { | |
295 | 297 | case a: Int => | |
296 | 298 | a | |
297 | 299 | case _ => | |
298 | 300 | 0 | |
299 | 301 | } | |
300 | 302 | let NewTPT = (TOPT + 1) | |
301 | 303 | if ((checkpairisavailableornot != EnterAssetID)) | |
302 | 304 | then throw("Pair is not available in Whitelisted Asset.") | |
303 | 305 | else if ((VotingStatus == CurrentVotingStatus)) | |
304 | 306 | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
305 | 307 | else if ((EnterAssetID == toBase58String(USDTAssetID))) | |
306 | 308 | then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input & Attach USDT as an attachment Token in payment[1].") | |
307 | 309 | else if ((pmt.assetId != USDTAssetID)) | |
308 | 310 | then throw("You can Attach USDT as an Attached Payment[1] to Swap USDT To Required Token. Any other asset else than USDT will be rejected.") | |
309 | 311 | else if ((10000000 > pmt.amount)) | |
310 | 312 | then throw("Your Attached USDT Amount is very low. Attach Atleast 10 USDT to Claim the minimum Tokens.") | |
311 | 313 | else if ((CheckUSDTBalance == 0)) | |
312 | 314 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
313 | 315 | else if ((CheckAssetBalance == 0)) | |
314 | 316 | then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.") | |
315 | 317 | else if ((quantityofpriceasset > CheckAssetBalance)) | |
316 | 318 | then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool.")) | |
317 | 319 | else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofUSDTToAssetSwapFee), IntegerEntry(("Total_of_Pair_Txns_" + EnterAssetID), NewTPT), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewSumupofUSDTBalance), ScriptTransfer(i.caller, userbalancetoreceive, fromBase58String(EnterAssetID)), ScriptTransfer(CollectAssetSwapFeeAddress, SwapFeetoreceive, fromBase58String(EnterAssetID))] | |
318 | 320 | } | |
319 | 321 | ||
320 | 322 | ||
321 | 323 | ||
322 | 324 | @Callable(i) | |
323 | 325 | func AddLiquidity (EnterAssetID) = { | |
324 | 326 | let calleraddress = toBase58String(i.caller.bytes) | |
325 | 327 | let pmt1 = value(i.payments[0]) | |
326 | 328 | let pmt2 = value(i.payments[1]) | |
327 | 329 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
328 | 330 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
329 | 331 | let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated.")) | |
330 | 332 | let CurrentVotingStatus = "F" | |
331 | 333 | let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
332 | 334 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) | |
333 | 335 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
334 | 336 | let decimals = decimalsinfo.decimals | |
335 | 337 | let arg1 = pow((CheckUSDTBalance / pow(10, 6, 6, 0, 0, UP)), 0, 1, 0, 0, UP) | |
336 | 338 | let arg2 = pow((CheckAssetBalance / pow(10, decimals, decimals, 0, 0, UP)), 0, 1, 0, 0, UP) | |
337 | 339 | let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, UP)), 0, 1, 0, 0, UP) | |
338 | 340 | let bothassetsdecimals = (6 + decimals) | |
339 | 341 | let sharedecimals = (bothassetsdecimals / 2) | |
340 | 342 | let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, UP)) | |
341 | 343 | let quantityofLPToken1 = pow((fraction(pmt1.amount, 1, pow(10, 0, decimals, 0, 0, UP)) * fraction(pmt2.amount, 1, pow(10, 0, 6, 0, 0, UP))), 0, 5, 1, sharedecimals, DOWN) | |
342 | 344 | let USDTHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) { | |
343 | 345 | case a: Int => | |
344 | 346 | a | |
345 | 347 | case _ => | |
346 | 348 | 0 | |
347 | 349 | } | |
348 | 350 | let NewUSDTHoldingInPair = (USDTHoldingInPair + pmt2.amount) | |
349 | 351 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) { | |
350 | 352 | case a: Int => | |
351 | 353 | a | |
352 | 354 | case _ => | |
353 | 355 | 0 | |
354 | 356 | } | |
355 | 357 | let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount) | |
356 | 358 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
357 | 359 | case a: Int => | |
358 | 360 | a | |
359 | 361 | case _ => | |
360 | 362 | 0 | |
361 | 363 | } | |
362 | 364 | let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1) | |
363 | 365 | if ((checkpairisavailableornot != EnterAssetID)) | |
364 | 366 | then throw("Pair is not available in Whitelisted Asset.") | |
365 | 367 | else if ((VotingStatus == CurrentVotingStatus)) | |
366 | 368 | then throw((EnterAssetID + " is not A Whitelisted Token Yet.")) | |
367 | 369 | else if ((EnterAssetID == toBase58String(USDTAssetID))) | |
368 | 370 | then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input as well as in payment[1] & Attach USDT as an attachment Token in payment[2].") | |
369 | 371 | else if ((size(i.payments) != 2)) | |
370 | 372 | then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = Token you want to add for Liquidity & payment2 = Equivalent Amount of USDT Token.") | |
371 | 373 | else if ((pmt1.assetId == USDTAssetID)) | |
372 | 374 | then throw("You Attached USDT asset in payment[1], please attach only whitelisted Token in payment[1] along with USDT in payment[2].") | |
373 | 375 | else if ((pmt1.assetId != fromBase58String(EnterAssetID))) | |
374 | 376 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
375 | 377 | else if ((pmt1.assetId != fromBase58String(EnterAssetID))) | |
376 | 378 | then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.") | |
377 | 379 | else if ((pmt2.assetId != USDTAssetID)) | |
378 | 380 | then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDT Token.") | |
379 | 381 | else if ((10000000 > pmt2.amount)) | |
380 | 382 | then throw("please attach atleast 10 USDT in payment[2] & Equivalent worth of Token in payment[1]") | |
381 | 383 | else if ((pmt2.amount != quantityofEnterAssetID)) | |
382 | 384 | then throw(("Attached payment[2] quantity is not matching as per attached payment[1].payment[2] must be " + toString(quantityofEnterAssetID))) | |
383 | 385 | else [IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewUSDTHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), Reissue(ReissueassetId, quantityofLPToken1, true), ScriptTransfer(i.caller, quantityofLPToken1, ReissueassetId)] | |
384 | 386 | } | |
385 | 387 | ||
386 | 388 | ||
387 | 389 | ||
388 | 390 | @Callable(i) | |
389 | 391 | func RemoveLiquidity (EnterAssetID) = { | |
390 | 392 | let calleraddress = toBase58String(i.caller.bytes) | |
391 | 393 | let pmt = if ((size(i.payments) == 1)) | |
392 | 394 | then i.payments[0] | |
393 | 395 | else throw("No payment attached, Please Attach LP Token as payment[1].") | |
394 | 396 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
395 | 397 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
396 | 398 | let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated.")) | |
397 | 399 | let CurrentVotingStatus = "F" | |
398 | 400 | let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) | |
399 | 401 | let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) | |
400 | 402 | let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist")) | |
401 | 403 | let decimals = decimalsinfo.decimals | |
402 | 404 | let arg1 = pow((CheckUSDTBalance / pow(10, 6, 6, 0, 0, UP)), 0, 1, 0, 0, UP) | |
403 | 405 | let arg2 = pow((CheckAssetBalance / pow(10, decimals, decimals, 0, 0, UP)), 0, 1, 0, 0, UP) | |
404 | 406 | let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, UP)), 0, 1, 0, 0, UP) | |
405 | 407 | let bothassetsdecimals = (6 + decimals) | |
406 | 408 | let sharedecimals = (bothassetsdecimals / 2) | |
407 | 409 | let SquareofAttachedPymt = fraction(pow(pmt.amount, sharedecimals, 2, 0, 6, HALFUP), 1, fraction(args3, 1, pow(10, 0, 6, 0, 0, UP))) | |
408 | 410 | let SqrtofAttachPymt = pow(SquareofAttachedPymt, 0, 5, 1, sharedecimals, DOWN) | |
409 | 411 | let UserLPWorth = fraction(args3, SqrtofAttachPymt, pow(10, 0, bothassetsdecimals, 0, 0, UP)) | |
410 | 412 | let USDTHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) { | |
411 | 413 | case a: Int => | |
412 | 414 | a | |
413 | 415 | case _ => | |
414 | 416 | 0 | |
415 | 417 | } | |
416 | 418 | let NewUSDTHoldingInPair = (USDTHoldingInPair - UserLPWorth) | |
417 | 419 | let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) { | |
418 | 420 | case a: Int => | |
419 | 421 | a | |
420 | 422 | case _ => | |
421 | 423 | 0 | |
422 | 424 | } | |
423 | 425 | let NewAssetHoldingInPair = (AssetHoldingInPair - SqrtofAttachPymt) | |
424 | 426 | let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) { | |
425 | 427 | case a: Int => | |
426 | 428 | a | |
427 | 429 | case _ => | |
428 | 430 | 0 | |
429 | 431 | } | |
430 | 432 | let NewLPTokenIssued = (LPTokenIssued - pmt.amount) | |
431 | 433 | if ((checkpairisavailableornot != EnterAssetID)) | |
432 | 434 | then throw("Pair is not available in Whitelist.") | |
433 | 435 | else if ((VotingStatus == CurrentVotingStatus)) | |
434 | 436 | then throw((EnterAssetID + " is not A Whitelist Token Yet.")) | |
435 | 437 | else if ((fromBase58String(EnterAssetID) == USDTAssetID)) | |
436 | 438 | then throw("Don't choose USDT AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]") | |
437 | 439 | else if ((pmt.assetId != ReissueableassetId)) | |
438 | 440 | then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.") | |
439 | 441 | else [Burn(ReissueableassetId, pmt.amount), IntegerEntry(("Total_LP_" + EnterAssetID), NewLPTokenIssued), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewUSDTHoldingInPair), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), NewAssetHoldingInPair), ScriptTransfer(i.caller, UserLPWorth, USDTAssetID), ScriptTransfer(i.caller, SqrtofAttachPymt, fromBase58String(EnterAssetID))] | |
440 | 442 | } | |
441 | 443 | ||
442 | 444 | ||
443 | 445 | ||
444 | 446 | @Callable(i) | |
445 | 447 | func RemovePairEntry (EnterAssetID) = { | |
446 | 448 | let adminrights = getStringValue(this, "Polarity_Admin_Rights") | |
447 | 449 | let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID)) | |
448 | 450 | let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID)) | |
449 | 451 | let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID)) | |
450 | 452 | let NewVotingStatus = "P" | |
451 | 453 | let calleraddress = toBase58String(i.caller.bytes) | |
452 | 454 | let currentheight = height | |
453 | 455 | let pendingblocksforprojectexpire = (checkendheight - height) | |
454 | 456 | if ((checkpairisavailableornot != EnterAssetID)) | |
455 | 457 | then throw("Pair is not available in Voting List.") | |
456 | 458 | else if ((adminrights != calleraddress)) | |
457 | 459 | then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair.")) | |
458 | 460 | else if ((checkendheight > height)) | |
459 | 461 | then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks")) | |
460 | 462 | else if ((VotingStatus == NewVotingStatus)) | |
461 | 463 | then throw((EnterAssetID + " is now Whitelisted. So you can't remove it.")) | |
462 | 464 | else [DeleteEntry(("Pair_UV_" + EnterAssetID)), DeleteEntry(("Voting_SH_" + EnterAssetID)), DeleteEntry(("Voting_EH_" + EnterAssetID)), DeleteEntry(("Voting_Period_" + EnterAssetID)), DeleteEntry(("Votes_Req_" + EnterAssetID)), DeleteEntry(("Listing_Fee_" + EnterAssetID)), DeleteEntry(("Voting_Status_" + EnterAssetID)), DeleteEntry(("Votes_Rcvd_" + EnterAssetID))] | |
463 | 465 | } | |
464 | 466 | ||
465 | 467 | ||
466 | 468 | @Verifier(tx) | |
467 | 469 | func verify () = match tx { | |
468 | 470 | case _ => | |
469 | 471 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
470 | 472 | } | |
471 | 473 |
github/deemru/w8io/169f3d6 134.50 ms ◑