tx · FtTcXfRCUHVgnKZHpnmuxRRtWU6WY8q8mDogiUzL53EA

3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV:  -0.01400000 Waves

2022.01.06 18:56 [1867244] smart account 3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV > SELF 0.00000000 Waves

{ "type": 13, "id": "FtTcXfRCUHVgnKZHpnmuxRRtWU6WY8q8mDogiUzL53EA", "fee": 1400000, "feeAssetId": null, "timestamp": 1641484569263, "version": 2, "chainId": 84, "sender": "3MshBTYYGc24JWzE2aYEktiz5KzeNQGA4GV", "senderPublicKey": "GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr", "proofs": [ "FCGPN6bV7MxwN4Uo6AKmbD8dtBpaAsBUadGJHpRAm7T72zvEAyCFEjUokTnrpoMpRZxsXtTWJY4KtZq5K14XUVC" ], "script": "base64:AAIEAAAAAAAAADMIAhIECgIIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSAwoBCBIDCgEIEgYKBAgICAgAAAAFAAAAAAtVU0RUQXNzZXRJRAEAAAAgCGWEtw/wimoa8+Jo6C4IkCTD0ydYA80s9i5eC9/aFaQAAAAAC0NPREVBc3NldElEAQAAACAtb1sBuZ3lSm8ahGink+4TF5YYAu/xRHYwe1h195OooAAAAAAVQ29sbGVjdENPREVGZWVBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABAQAAACBSg9mgi9eQkjsz5eBARHIbc7Hg/F4fmB0sxZ6ySMfiIAAAAAAZQ29sbGVjdFVTRFRTd2FwRmVlQWRkcmVzcwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQEAAAAgUoPZoIvXkJI7M+XgQERyG3Ox4PxeH5gdLMWeskjH4iAAAAAAGkNvbGxlY3RBc3NldFN3YXBGZWVBZGRyZXNzCQEAAAAUYWRkcmVzc0Zyb21QdWJsaWNLZXkAAAABAQAAACBSg9mgi9eQkjsz5eBARHIbc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JRAIAAAABXwkAAlgAAAABBQAAAAtVU0RUQXNzZXRJRAUAAAAUTmV3VVNEVEhvbGRpbmdJblBhaXIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAC0JhbGFuY2Vfb2ZfCQACWAAAAAEFAAAAC1VTRFRBc3NldElEAgAAAAFfBQAAAAxFbnRlckFzc2V0SUQFAAAAFU5ld0Fzc2V0SG9sZGluZ0luUGFpcgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAC1VzZXJMUFdvcnRoBQAAAAtVU0RUQXNzZXRJRAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAEFNxcnRvZkF0dGFjaFB5bXQJAAJZAAAAAQUAAAAMRW50ZXJBc3NldElEBQAAAANuaWwAAAABaQEAAAALUmVtb3ZlRW50cnkAAAAEAAAAA0tleQAAAARLZXkxAAAABEtleTIAAAAES2V5MwkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAANLZXkJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAES2V5MQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAARLZXkyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAABEtleTMFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleS12rQk=", "height": 1867244, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GQ3SjQYKCsCfzgGwEMfidcuUgZQDoq3tWi1EQ3tLSEgD Next: BzvUFNqxE3fpi86qLQz7ZDUqVPohaG1f15Kb7KkCm9gW Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
6-let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
6+let CODEAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
77
8-let CollectBalletFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
8+let CollectCODEFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
10-let IssueBalletFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
10+let CollectUSDTSwapFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1111
12-let CollectUSDTSwapFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
13-
14-let CollectAssetSwapFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
15-
16-@Callable(i)
17-func IssueBallet () = {
18- let pmt = value(i.payments[0])
19- let currentKey = toBase58String(i.caller.bytes)
20- let PricePerBallet = getIntegerValue(this, "BALLET/TN")
21- let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet)
22- let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
23- let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser)
24- let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
25- let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount)
26- let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
27- let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
28- let FeePercentage = 1
29- let BalanceTokensReturnedToUser = (100 - FeePercentage)
30- if (isDefined(pmt.assetId))
31- then throw("Incorrect asset attached, please attach TN.")
32- else if ((5000000 > pmt.amount))
33- then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.")
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- }
36-
37-
38-
39-@Callable(i)
40-func Liquidate () = {
41- let currentKey = toBase58String(i.callerPublicKey)
42- let pmt = value(i.payments[0])
43- let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
44- let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount)
45- let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
46- let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
47- let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000)
48- let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue)
49- let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
50- if ((pmt.assetId != BalletAssetID))
51- then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
52- else if ((100000 > pmt.amount))
53- then throw("Attach Amount must be greater than 0.001 Ballet.")
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- }
56-
57-
12+let CollectAssetSwapFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
5813
5914 @Callable(i)
6015 func RegisterPairForVoting (EnterAssetID,days) = {
8035 else if ((fetchpair == EnterAssetID))
8136 then throw("Pair Already Exist in Voting List.")
8237 else if ((size(i.payments) != 2))
83- then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token & payment2 = Token you want to List for Voting.")
84- else if ((pmt1.assetId != BalletAssetID))
85- then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
38+ then throw("Two attached assets expected as payment. Kindly Attach payment1 = CODE Token & payment2 = Token you want to List for Voting.")
39+ else if ((pmt1.assetId != CODEAssetID))
40+ then throw("Incorrect asset attached for Voting in payment[1], please attach 2000 CODE Token only.")
8641 else if ((pmt1.amount != 10000000))
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."))
42+ then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " CODE for Voting in payment[1], please attach 2000 CODE Token."))
8843 else if ((pmt2.assetId != assetinfopmt2))
89- then throw("Input String and Attached AssetID in payment2 is not matching.")
44+ then throw("Input String & Attached AssetID in payment2 is not matching.")
9045 else if ((TN == true))
91- then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
92- else if ((pmt2.assetId == BalletAssetID))
93- then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].")
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)]
46+ then throw("You Attached TN Asset ID for Voting, please attach fsTN instead of TN or Token You want to list in payment[2].")
47+ 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 / 3)), IntegerEntry(("Votes_Rcvd_" + EnterAssetID), 0), ScriptTransfer(CollectCODEFeeAddress, pmt1.amount, CODEAssetID)]
9548 }
9649
9750
10053 func DoVoting (EnterAssetID) = {
10154 let pmt = if ((size(i.payments) == 1))
10255 then i.payments[0]
103- else throw("Ballet Token is required as Attached payment")
56+ else throw((toBase58String(CODEAssetID) + "CODE Token is required as Attached payment"))
10457 let calleraddress = toBase58String(i.caller.bytes)
10558 let NewVotingStatus = "P"
10659 let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID))
12881 then throw("Pair is not available in Voting List.")
12982 else if ((height > checkendheight))
13083 then throw((("Voting timeline for " + EnterAssetID) + " is expired."))
131- else if ((pmt.assetId != BalletAssetID))
132- then throw((("Kindly Attach Only " + toBase58String(BalletAssetID)) + " Token."))
84+ else if ((pmt.assetId != CODEAssetID))
85+ then throw((("Kindly Attach Only " + toBase58String(CODEAssetID)) + " Token."))
13386 else if ((VotingStatus == NewVotingStatus))
134- then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist."))
87+ then throw((("Voting for " + EnterAssetID) + " pair is completed & it’s available in whitelist."))
13588 else if (checkwhitelist)
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_of_Swaps_Txns", 0), IntegerEntry(("Total_Swap_Fee_Collected_" + toBase58String(USDTAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0)]
89+ 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)]
13790 else [IntegerEntry(("Votes_Rcvd_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), individualvotescount)]
13891 }
13992
147100 let calleraddress = toBase58String(i.caller.bytes)
148101 let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID))
149102 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
150- let checkuservotingbalance = valueOrErrorMessage(getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)), (calleraddress + " Address never voted and exist in list."))
103+ let checkuservotingbalance = valueOrErrorMessage(getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)), (calleraddress + " Address never voted & exist in list."))
151104 let pendingblocksforprojectexpire = (checkendheight - height)
152105 if ((checkpairisavailableornot != EnterAssetID))
153106 then throw("Pair is not available in Voting List.")
154107 else if ((checkendheight > height))
155- then throw((("Voting Already Running. You can withdraw your Ballet Token after " + toString(pendingblocksforprojectexpire)) + " blocks"))
108+ then throw((("Voting Already Running. You can withdraw your CODE Token after " + toString(pendingblocksforprojectexpire)) + " blocks"))
156109 else if ((0 >= checkuservotingbalance))
157- then throw("You don't have any dues of ballet balance in this Voting Pair.")
110+ then throw("You don't have any dues of CODE balance in this Voting Pair.")
158111 else if (isDefined(pmt.assetId))
159112 then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token")
160113 else if ((pmt.amount != 10000000))
161114 then throw("Please attach 0.1 TN as a fee to release your token.")
162- else [IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
115+ else [IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, CODEAssetID)]
163116 }
164117
165118
171124 let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token")
172125 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
173126 let name = info.name
127+ let decimals = info.decimals
174128 let NewVotingStatus = "P"
175129 let VotingStatus = valueOrErrorMessage(getString(this, ("Voting_Status_" + EnterAssetID)), ("Voting Status is Missing for " + EnterAssetID))
176- let LPissue = Issue((("LP-" + name) + "-USDT"), (((("LP-" + name) + "-USDT") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), 1, 0, true)
130+ let LPissue = Issue((("LP-" + take(name, 8)) + "-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)
177131 let LPid = calculateAssetId(LPissue)
178132 if ((adminrights != calleraddress))
179133 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
199153 let newbalanceofUSDT = fraction(CheckUSDTBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
200154 let quantityofpriceasset = (CheckUSDTBalance - newbalanceofUSDT)
201155 let CurrentVotingStatus = "F"
202- let SwapFee = 1
203- let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 100)
156+ let SwapFee = 3
157+ let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
204158 let userbalancetoreceive = (quantityofpriceasset - SwapFeetoreceive)
205- let SumupofAssetToUSDTSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + toBase58String(USDTAssetID))) {
159+ let SumupofAssetToUSDTSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
206160 case a: Int =>
207161 a
208162 case _ =>
223177 0
224178 }
225179 let NewSumupofUSDTBalance = (CheckUSDTBalance - quantityofpriceasset)
226- let SumupofSwapTxns = match getInteger(this, "Total_of_Swaps_Txns") {
180+ let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
227181 case a: Int =>
228182 a
229183 case _ =>
230184 0
231185 }
232- let NewSumupofSwapTxns = (SumupofSwapTxns + 1)
186+ let NewTPT = (TOPT + 1)
233187 if ((EnterAssetID == toBase58String(USDTAssetID)))
234- then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input and Attach Whitelisted Asset as an attachment Token in payment[1].")
188+ then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
235189 else if ((checkpairisavailableornot != EnterAssetID))
236190 then throw("Pair is not available in Whitelisted Asset.")
237191 else if ((VotingStatus == CurrentVotingStatus))
244198 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
245199 else if ((CheckAssetBalance == 0))
246200 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
247- else if ((1000000 > quantityofpriceasset))
248- then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 1 dollar atleast."))
201+ else if ((10000000 > quantityofpriceasset))
202+ then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 10 dollar atleast."))
249203 else if ((quantityofpriceasset > CheckUSDTBalance))
250204 then throw((("Pool Only has a Liquidity of " + toString((CheckUSDTBalance / pow(10, 0, 6, 0, 0, UP)))) + " USDT. Add Liquidity into Pool."))
251- else [IntegerEntry(("Total_Swap_Fee_Collected_" + toBase58String(USDTAssetID)), NewSumupofAssetToUSDTSwapFee), IntegerEntry("Total_of_Swaps_Txns", NewSumupofSwapTxns), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewSumupofUSDTBalance), ScriptTransfer(i.caller, userbalancetoreceive, USDTAssetID), ScriptTransfer(CollectUSDTSwapFeeAddress, SwapFeetoreceive, USDTAssetID)]
205+ 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)]
252206 }
253207
254208
266220 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
267221 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
268222 let CurrentVotingStatus = "F"
269- let SwapFee = 1
270- let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 100)
223+ let SwapFee = 3
224+ let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
271225 let userbalancetoreceive = (quantityofpriceasset - SwapFeetoreceive)
272- let SumupofSwapTxns = match getInteger(this, "Total_of_Swaps_Txns") {
273- case a: Int =>
274- a
275- case _ =>
276- 0
277- }
278- let NewSumupofSwapTxns = (SumupofSwapTxns + 1)
279226 let SumupofUSDTToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
280227 case a: Int =>
281228 a
297244 0
298245 }
299246 let NewSumupofUSDTBalance = (CheckUSDTBalance + pmt.amount)
247+ let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
248+ case a: Int =>
249+ a
250+ case _ =>
251+ 0
252+ }
253+ let NewTPT = (TOPT + 1)
300254 if ((checkpairisavailableornot != EnterAssetID))
301255 then throw("Pair is not available in Whitelisted Asset.")
302256 else if ((VotingStatus == CurrentVotingStatus))
303257 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
304258 else if ((EnterAssetID == toBase58String(USDTAssetID)))
305- then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input and Attach USDT as an attachment Token in payment[1].")
259+ then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input & Attach USDT as an attachment Token in payment[1].")
306260 else if ((pmt.assetId != USDTAssetID))
307261 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.")
308- else if ((1000000 > pmt.amount))
309- then throw("Your Attached USDT Amount is very low. Attach Atleast 1 USDT to Claim the minimum Tokens.")
262+ else if ((10000000 > pmt.amount))
263+ then throw("Your Attached USDT Amount is very low. Attach Atleast 10 USDT to Claim the minimum Tokens.")
310264 else if ((CheckUSDTBalance == 0))
311265 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
312266 else if ((CheckAssetBalance == 0))
313267 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
314268 else if ((quantityofpriceasset > CheckAssetBalance))
315269 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
316- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofUSDTToAssetSwapFee), IntegerEntry("Total_of_Swaps_Txns", NewSumupofSwapTxns), 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))]
270+ 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))]
317271 }
318272
319273
327281 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
328282 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
329283 let CurrentVotingStatus = "F"
330- let AddLiquidityFee = 100000
331284 let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))
332285 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID))
333- let newpriceofAsset = fraction(CheckUSDTBalance, 1, CheckAssetBalance)
334- let quantityofEnterAssetID = fraction(1, pmt1.amount, newpriceofAsset)
335- let quantityofLPToken1 = pmt2.amount
286+ let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
287+ let decimals = decimalsinfo.decimals
288+ let arg1 = pow((CheckUSDTBalance / pow(10, 6, 6, 0, 0, UP)), 0, 1, 0, 0, UP)
289+ let arg2 = pow((CheckAssetBalance / pow(10, decimals, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
290+ let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
291+ let bothassetsdecimals = (6 + decimals)
292+ let sharedecimals = (bothassetsdecimals / 2)
293+ let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, UP))
294+ 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)
336295 let USDTHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
337296 case a: Int =>
338297 a
339298 case _ =>
340299 0
341300 }
342- let NewUSDTHoldingInPair = (USDTHoldingInPair + pmt1.amount)
301+ let NewUSDTHoldingInPair = (USDTHoldingInPair + pmt2.amount)
343302 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) {
344303 case a: Int =>
345304 a
346305 case _ =>
347306 0
348307 }
349- let NewAssetHoldingInPair = (AssetHoldingInPair + pmt2.amount)
308+ let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
350309 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
351310 case a: Int =>
352311 a
359318 else if ((VotingStatus == CurrentVotingStatus))
360319 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
361320 else if ((EnterAssetID == toBase58String(USDTAssetID)))
362- then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input as well as in payment[1] and Attach USDT as an attachment Token in payment[2].")
321+ 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].")
363322 else if ((size(i.payments) != 2))
364- then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = USDT Token and payment2 = Token you want to add for Liquidity.")
365- else if ((pmt1.assetId != USDTAssetID))
366- then throw("Incorrect asset attached for Liquidity in payment[1], please attach USDT Token only.")
367- else if ((10000000 > pmt1.amount))
368- then throw("please attach atleast 10 USDT in payment[1].")
369- else if ((pmt2.assetId == USDTAssetID))
370- then throw("You Attached USDT asset for Liquidity in both payments, Kindly Attach payment1 = USDT Token and payment2 = Token you want to add for Liquidity.")
371- else if ((pmt2.assetId != fromBase58String(EnterAssetID)))
372- then throw((("Asset String " + EnterAssetID) + " is not matching with attached payment[2]. String and payment[2] must be same."))
373- else if ((pmt2.amount != quantityofEnterAssetID))
374- then throw(("Attached payment[2] quantity is not matching as per attached payment[1] USDT.It must be " + toString(quantityofEnterAssetID)))
375- 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)]
323+ 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.")
324+ else if ((pmt1.assetId == USDTAssetID))
325+ then throw("You Attached USDT asset in payment[1], please attach only whitelisted Token in payment[1] along with USDT in payment[2].")
326+ else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
327+ then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
328+ else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
329+ then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
330+ else if ((pmt2.assetId != USDTAssetID))
331+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDT Token.")
332+ else if ((10000000 > pmt2.amount))
333+ then throw("please attach atleast 10 USDT in payment[2] & Equivalent worth of Token in payment[1]")
334+ else if ((pmt2.amount != quantityofEnterAssetID))
335+ then throw(("Attached payment[2] quantity is not matching as per attached payment[1].payment[2] must be " + toString(quantityofEnterAssetID)))
336+ 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)]
376337 }
377338
378339
379340
380341 @Callable(i)
381-func RemovePairEntry (EnterAssetID) = {
382- let adminrights = getStringValue(this, "Polarity_Admin_Rights")
383- let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID))
342+func RemoveLiquidity (EnterAssetID) = {
343+ let calleraddress = toBase58String(i.caller.bytes)
344+ let pmt = if ((size(i.payments) == 1))
345+ then i.payments[0]
346+ else throw("No payment attached, Please Attach LP Token as payment[1].")
384347 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
385348 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
386- let NewVotingStatus = "P"
387- let calleraddress = toBase58String(i.caller.bytes)
388- let currentheight = height
389- let pendingblocksforprojectexpire = (checkendheight - height)
349+ let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
350+ let CurrentVotingStatus = "F"
351+ let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))
352+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID))
353+ let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
354+ let decimals = decimalsinfo.decimals
355+ let arg1 = pow((CheckUSDTBalance / pow(10, 6, 6, 0, 0, UP)), 0, 1, 0, 0, UP)
356+ let arg2 = pow((CheckAssetBalance / pow(10, decimals, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
357+ let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
358+ let bothassetsdecimals = (6 + decimals)
359+ let sharedecimals = (bothassetsdecimals / 2)
360+ let SquareofAttachedPymt = fraction(pow(pmt.amount, sharedecimals, 2, 0, 6, HALFUP), 1, fraction(args3, 1, pow(10, 0, 6, 0, 0, UP)))
361+ let SqrtofAttachPymt = pow(SquareofAttachedPymt, 0, 5, 1, sharedecimals, DOWN)
362+ let UserLPWorth = fraction(args3, SqrtofAttachPymt, pow(10, 0, bothassetsdecimals, 0, 0, UP))
363+ let USDTHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
364+ case a: Int =>
365+ a
366+ case _ =>
367+ 0
368+ }
369+ let NewUSDTHoldingInPair = (USDTHoldingInPair - UserLPWorth)
370+ let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) {
371+ case a: Int =>
372+ a
373+ case _ =>
374+ 0
375+ }
376+ let NewAssetHoldingInPair = (AssetHoldingInPair - SqrtofAttachPymt)
377+ let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
378+ case a: Int =>
379+ a
380+ case _ =>
381+ 0
382+ }
383+ let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
390384 if ((checkpairisavailableornot != EnterAssetID))
391- then throw("Pair is not available in Voting List.")
392- else if ((adminrights != calleraddress))
393- then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair."))
394- else if ((checkendheight > height))
395- then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks"))
396- else if ((VotingStatus == NewVotingStatus))
397- then throw((EnterAssetID + " is now Whitelisted. So you can't remove it."))
398- 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))]
385+ then throw("Pair is not available in Whitelist.")
386+ else if ((VotingStatus == CurrentVotingStatus))
387+ then throw((EnterAssetID + " is not A Whitelist Token Yet."))
388+ else if ((fromBase58String(EnterAssetID) == USDTAssetID))
389+ then throw("Don't choose USDT AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
390+ else if ((pmt.assetId != ReissueableassetId))
391+ then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
392+ 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))]
399393 }
400394
401395
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let USDTAssetID = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H'
55
6-let BalletAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
6+let CODEAssetID = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
77
8-let CollectBalletFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
8+let CollectCODEFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
99
10-let IssueBalletFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
10+let CollectUSDTSwapFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
1111
12-let CollectUSDTSwapFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
13-
14-let CollectAssetSwapFeeAddress = addressFromPublicKey(base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr')
15-
16-@Callable(i)
17-func IssueBallet () = {
18- let pmt = value(i.payments[0])
19- let currentKey = toBase58String(i.caller.bytes)
20- let PricePerBallet = getIntegerValue(this, "BALLET/TN")
21- let NewBalletToUser = fraction(100000, pmt.amount, PricePerBallet)
22- let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
23- let TotalIssuedBallet = (PreviousIssuedBallet + NewBalletToUser)
24- let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
25- let BalletReserveValue = (PreviousBalletReserveValue + pmt.amount)
26- let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
27- let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
28- let FeePercentage = 1
29- let BalanceTokensReturnedToUser = (100 - FeePercentage)
30- if (isDefined(pmt.assetId))
31- then throw("Incorrect asset attached, please attach TN.")
32- else if ((5000000 > pmt.amount))
33- then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.")
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- }
36-
37-
38-
39-@Callable(i)
40-func Liquidate () = {
41- let currentKey = toBase58String(i.callerPublicKey)
42- let pmt = value(i.payments[0])
43- let PreviousIssuedBallet = getIntegerValue(this, "Total_Issued_Ballet:")
44- let TotalIssuedBallet = (PreviousIssuedBallet - pmt.amount)
45- let PreviousBalletReserveValue = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
46- let PreviousBalletBackupPrice = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
47- let calculateburnvalue = fraction(PreviousBalletBackupPrice, pmt.amount, 100000)
48- let BalletReserveValue = (PreviousBalletReserveValue - calculateburnvalue)
49- let BalletBackupPrice = fraction(100000, BalletReserveValue, TotalIssuedBallet)
50- if ((pmt.assetId != BalletAssetID))
51- then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
52- else if ((100000 > pmt.amount))
53- then throw("Attach Amount must be greater than 0.001 Ballet.")
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- }
56-
57-
12+let CollectAssetSwapFeeAddress = addressFromPublicKey(base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR')
5813
5914 @Callable(i)
6015 func RegisterPairForVoting (EnterAssetID,days) = {
6116 let pmt1 = value(i.payments[0])
6217 let pmt2 = value(i.payments[1])
6318 let maximumvotingdays = 90
6419 let currentKey = toBase58String(i.caller.bytes)
6520 let TN = !(isDefined(pmt2.assetId))
6621 let oneday = 1440
6722 let NoOfDaysBlocks = (oneday * days)
6823 let gap = (NoOfDaysBlocks - 43199)
6924 let votesrequired = ((100000 + ((11574 * gap) / 10000)) * 100000000)
7025 let votingExpire = (height + NoOfDaysBlocks)
7126 let fetchpair = getString(this, ("Pair_UV_" + EnterAssetID))
7227 let votingstatus = "F"
7328 let assetinfopmt2 = fromBase58String(EnterAssetID)
7429 if ((43 > size(EnterAssetID)))
7530 then throw("Wrong AssetID is Entered for Voting. Please Enter a Valid AssetID. Probably you entered an AssetID less than 43 Chars.")
7631 else if ((29 >= days))
7732 then throw("Enter no. of days in between 30 to 90.")
7833 else if ((days > maximumvotingdays))
7934 then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.")
8035 else if ((fetchpair == EnterAssetID))
8136 then throw("Pair Already Exist in Voting List.")
8237 else if ((size(i.payments) != 2))
83- then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token & payment2 = Token you want to List for Voting.")
84- else if ((pmt1.assetId != BalletAssetID))
85- then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
38+ then throw("Two attached assets expected as payment. Kindly Attach payment1 = CODE Token & payment2 = Token you want to List for Voting.")
39+ else if ((pmt1.assetId != CODEAssetID))
40+ then throw("Incorrect asset attached for Voting in payment[1], please attach 2000 CODE Token only.")
8641 else if ((pmt1.amount != 10000000))
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."))
42+ then throw((((("You attached only " + toString(fraction(pmt1.amount, 1, 100000000))) + ".") + toString(fraction(pmt1.amount, 1, 10000000))) + " CODE for Voting in payment[1], please attach 2000 CODE Token."))
8843 else if ((pmt2.assetId != assetinfopmt2))
89- then throw("Input String and Attached AssetID in payment2 is not matching.")
44+ then throw("Input String & Attached AssetID in payment2 is not matching.")
9045 else if ((TN == true))
91- then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
92- else if ((pmt2.assetId == BalletAssetID))
93- then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].")
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)]
46+ then throw("You Attached TN Asset ID for Voting, please attach fsTN instead of TN or Token You want to list in payment[2].")
47+ 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 / 3)), IntegerEntry(("Votes_Rcvd_" + EnterAssetID), 0), ScriptTransfer(CollectCODEFeeAddress, pmt1.amount, CODEAssetID)]
9548 }
9649
9750
9851
9952 @Callable(i)
10053 func DoVoting (EnterAssetID) = {
10154 let pmt = if ((size(i.payments) == 1))
10255 then i.payments[0]
103- else throw("Ballet Token is required as Attached payment")
56+ else throw((toBase58String(CODEAssetID) + "CODE Token is required as Attached payment"))
10457 let calleraddress = toBase58String(i.caller.bytes)
10558 let NewVotingStatus = "P"
10659 let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID))
10760 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
10861 let checkvotesrequired = getIntegerValue(this, ("Votes_Req_" + EnterAssetID))
10962 let checkvotesreceived = getIntegerValue(this, ("Votes_Rcvd_" + EnterAssetID))
11063 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
11164 let currentvotes = match getInteger(this, ("Votes_Rcvd_" + EnterAssetID)) {
11265 case a: Int =>
11366 a
11467 case _ =>
11568 0
11669 }
11770 let newvotescount = (currentvotes + pmt.amount)
11871 let individualvotes = match getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)) {
11972 case b: Int =>
12073 b
12174 case _ =>
12275 0
12376 }
12477 let individualvotescount = (individualvotes + pmt.amount)
12578 let checkwhitelist = (checkvotesreceived >= checkvotesrequired)
12679 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
12780 if ((checkpairisavailableornot != EnterAssetID))
12881 then throw("Pair is not available in Voting List.")
12982 else if ((height > checkendheight))
13083 then throw((("Voting timeline for " + EnterAssetID) + " is expired."))
131- else if ((pmt.assetId != BalletAssetID))
132- then throw((("Kindly Attach Only " + toBase58String(BalletAssetID)) + " Token."))
84+ else if ((pmt.assetId != CODEAssetID))
85+ then throw((("Kindly Attach Only " + toBase58String(CODEAssetID)) + " Token."))
13386 else if ((VotingStatus == NewVotingStatus))
134- then throw((("Voting for " + EnterAssetID) + " pair is completed and it’s available in whitelist."))
87+ then throw((("Voting for " + EnterAssetID) + " pair is completed & it’s available in whitelist."))
13588 else if (checkwhitelist)
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_of_Swaps_Txns", 0), IntegerEntry(("Total_Swap_Fee_Collected_" + toBase58String(USDTAssetID)), 0), IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), 0)]
89+ 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)]
13790 else [IntegerEntry(("Votes_Rcvd_" + EnterAssetID), newvotescount), IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), individualvotescount)]
13891 }
13992
14093
14194
14295 @Callable(i)
14396 func WithdrawVotedTokens (EnterAssetID) = {
14497 let pmt = if ((size(i.payments) == 1))
14598 then i.payments[0]
14699 else throw("0.1 TN Token is required as Attached payment.")
147100 let calleraddress = toBase58String(i.caller.bytes)
148101 let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID))
149102 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
150- let checkuservotingbalance = valueOrErrorMessage(getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)), (calleraddress + " Address never voted and exist in list."))
103+ let checkuservotingbalance = valueOrErrorMessage(getInteger(this, ((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID)), (calleraddress + " Address never voted & exist in list."))
151104 let pendingblocksforprojectexpire = (checkendheight - height)
152105 if ((checkpairisavailableornot != EnterAssetID))
153106 then throw("Pair is not available in Voting List.")
154107 else if ((checkendheight > height))
155- then throw((("Voting Already Running. You can withdraw your Ballet Token after " + toString(pendingblocksforprojectexpire)) + " blocks"))
108+ then throw((("Voting Already Running. You can withdraw your CODE Token after " + toString(pendingblocksforprojectexpire)) + " blocks"))
156109 else if ((0 >= checkuservotingbalance))
157- then throw("You don't have any dues of ballet balance in this Voting Pair.")
110+ then throw("You don't have any dues of CODE balance in this Voting Pair.")
158111 else if (isDefined(pmt.assetId))
159112 then throw("Don't attach any other asset. Please attach 0.1 TN as a fee to release your token")
160113 else if ((pmt.amount != 10000000))
161114 then throw("Please attach 0.1 TN as a fee to release your token.")
162- else [IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, BalletAssetID)]
115+ else [IntegerEntry(((("Votes_Rcvd_" + calleraddress) + "_") + EnterAssetID), 0), ScriptTransfer(i.caller, checkuservotingbalance, CODEAssetID)]
163116 }
164117
165118
166119
167120 @Callable(i)
168121 func IssueLPToken (EnterAssetID) = {
169122 let adminrights = valueOrErrorMessage(getString(this, "LP_Admin_Rights"), "LP Admin Rights are Not Included into Smart Contract. Deploy Admin Rights First.")
170123 let calleraddress = toBase58String(i.caller.bytes)
171124 let checkpairisavailableornot = valueOrErrorMessage(getString(this, ("Pair_UV_" + EnterAssetID)), "Asset not Found in Whitelisted Token")
172125 let info = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
173126 let name = info.name
127+ let decimals = info.decimals
174128 let NewVotingStatus = "P"
175129 let VotingStatus = valueOrErrorMessage(getString(this, ("Voting_Status_" + EnterAssetID)), ("Voting Status is Missing for " + EnterAssetID))
176- let LPissue = Issue((("LP-" + name) + "-USDT"), (((("LP-" + name) + "-USDT") + " is a Liquidity Provider Token Issued Against ") + EnterAssetID), 1, 0, true)
130+ let LPissue = Issue((("LP-" + take(name, 8)) + "-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)
177131 let LPid = calculateAssetId(LPissue)
178132 if ((adminrights != calleraddress))
179133 then throw((("Your are not allowded to Issue LP Token. Only " + adminrights) + " can issue the LP Token."))
180134 else if ((checkpairisavailableornot != EnterAssetID))
181135 then throw("Pair is not available in Voting List.")
182136 else if ((VotingStatus != NewVotingStatus))
183137 then throw("LP Token must be a Whitelisted Token.")
184138 else [LPissue, StringEntry(("LP_" + EnterAssetID), toBase58String(LPid))]
185139 }
186140
187141
188142
189143 @Callable(i)
190144 func SwapAssetToUSDTPairEntry (EnterAssetID) = {
191145 let calleraddress = toBase58String(i.caller.bytes)
192146 let pmt = if ((size(i.payments) == 1))
193147 then i.payments[0]
194148 else throw("Whitelisted Token is required as Attached payment[1].")
195149 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
196150 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
197151 let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))
198152 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID))
199153 let newbalanceofUSDT = fraction(CheckUSDTBalance, CheckAssetBalance, (CheckAssetBalance + pmt.amount))
200154 let quantityofpriceasset = (CheckUSDTBalance - newbalanceofUSDT)
201155 let CurrentVotingStatus = "F"
202- let SwapFee = 1
203- let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 100)
156+ let SwapFee = 3
157+ let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
204158 let userbalancetoreceive = (quantityofpriceasset - SwapFeetoreceive)
205- let SumupofAssetToUSDTSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + toBase58String(USDTAssetID))) {
159+ let SumupofAssetToUSDTSwapFee = match getInteger(this, ((("Total_Swap_Fee_Collected_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
206160 case a: Int =>
207161 a
208162 case _ =>
209163 0
210164 }
211165 let NewSumupofAssetToUSDTSwapFee = (SumupofAssetToUSDTSwapFee + SwapFeetoreceive)
212166 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) {
213167 case a: Int =>
214168 a
215169 case _ =>
216170 0
217171 }
218172 let NewSumupofAssetBalance = (CheckAssetBalance + pmt.amount)
219173 let SumupUSDTBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
220174 case a: Int =>
221175 a
222176 case _ =>
223177 0
224178 }
225179 let NewSumupofUSDTBalance = (CheckUSDTBalance - quantityofpriceasset)
226- let SumupofSwapTxns = match getInteger(this, "Total_of_Swaps_Txns") {
180+ let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
227181 case a: Int =>
228182 a
229183 case _ =>
230184 0
231185 }
232- let NewSumupofSwapTxns = (SumupofSwapTxns + 1)
186+ let NewTPT = (TOPT + 1)
233187 if ((EnterAssetID == toBase58String(USDTAssetID)))
234- then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input and Attach Whitelisted Asset as an attachment Token in payment[1].")
188+ then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input & Attach Whitelisted Asset as an attachment Token in payment[1].")
235189 else if ((checkpairisavailableornot != EnterAssetID))
236190 then throw("Pair is not available in Whitelisted Asset.")
237191 else if ((VotingStatus == CurrentVotingStatus))
238192 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
239193 else if ((pmt.assetId == USDTAssetID))
240194 then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are accepted.")
241195 else if ((pmt.assetId != fromBase58String(EnterAssetID)))
242196 then throw(("Incorrect asset attached, please attach or send " + EnterAssetID))
243197 else if ((CheckUSDTBalance == 0))
244198 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
245199 else if ((CheckAssetBalance == 0))
246200 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
247- else if ((1000000 > quantityofpriceasset))
248- then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 1 dollar atleast."))
201+ else if ((10000000 > quantityofpriceasset))
202+ then throw((("Your Attached Asset Amount is very low. Attach More " + EnterAssetID) + " Tokens to Claim the minimum Amount of 10 dollar atleast."))
249203 else if ((quantityofpriceasset > CheckUSDTBalance))
250204 then throw((("Pool Only has a Liquidity of " + toString((CheckUSDTBalance / pow(10, 0, 6, 0, 0, UP)))) + " USDT. Add Liquidity into Pool."))
251- else [IntegerEntry(("Total_Swap_Fee_Collected_" + toBase58String(USDTAssetID)), NewSumupofAssetToUSDTSwapFee), IntegerEntry("Total_of_Swaps_Txns", NewSumupofSwapTxns), IntegerEntry(((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID), NewSumupofAssetBalance), IntegerEntry(((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)), NewSumupofUSDTBalance), ScriptTransfer(i.caller, userbalancetoreceive, USDTAssetID), ScriptTransfer(CollectUSDTSwapFeeAddress, SwapFeetoreceive, USDTAssetID)]
205+ 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)]
252206 }
253207
254208
255209
256210 @Callable(i)
257211 func SwapUSDTToAssetPairEntry (EnterAssetID) = {
258212 let calleraddress = toBase58String(i.caller.bytes)
259213 let pmt = if ((size(i.payments) == 1))
260214 then i.payments[0]
261215 else throw("Only USDT Token is required as an Attached payment[1].")
262216 let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))
263217 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID))
264218 let newbalanceofAsset = fraction(CheckUSDTBalance, CheckAssetBalance, (CheckUSDTBalance + pmt.amount))
265219 let quantityofpriceasset = (CheckAssetBalance - newbalanceofAsset)
266220 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
267221 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
268222 let CurrentVotingStatus = "F"
269- let SwapFee = 1
270- let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 100)
223+ let SwapFee = 3
224+ let SwapFeetoreceive = ((quantityofpriceasset * SwapFee) / 1000)
271225 let userbalancetoreceive = (quantityofpriceasset - SwapFeetoreceive)
272- let SumupofSwapTxns = match getInteger(this, "Total_of_Swaps_Txns") {
273- case a: Int =>
274- a
275- case _ =>
276- 0
277- }
278- let NewSumupofSwapTxns = (SumupofSwapTxns + 1)
279226 let SumupofUSDTToAssetSwapFee = match getInteger(this, ("Total_Swap_Fee_Collected_" + EnterAssetID)) {
280227 case a: Int =>
281228 a
282229 case _ =>
283230 0
284231 }
285232 let NewSumupofUSDTToAssetSwapFee = (SumupofUSDTToAssetSwapFee + SwapFeetoreceive)
286233 let SumupAssetBalance = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) {
287234 case a: Int =>
288235 a
289236 case _ =>
290237 0
291238 }
292239 let NewSumupofAssetBalance = (CheckAssetBalance - quantityofpriceasset)
293240 let SumupUSDTBalance = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
294241 case a: Int =>
295242 a
296243 case _ =>
297244 0
298245 }
299246 let NewSumupofUSDTBalance = (CheckUSDTBalance + pmt.amount)
247+ let TOPT = match getIntegerValue(this, ("Total_of_Pair_Txns_" + EnterAssetID)) {
248+ case a: Int =>
249+ a
250+ case _ =>
251+ 0
252+ }
253+ let NewTPT = (TOPT + 1)
300254 if ((checkpairisavailableornot != EnterAssetID))
301255 then throw("Pair is not available in Whitelisted Asset.")
302256 else if ((VotingStatus == CurrentVotingStatus))
303257 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
304258 else if ((EnterAssetID == toBase58String(USDTAssetID)))
305- then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input and Attach USDT as an attachment Token in payment[1].")
259+ then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input & Attach USDT as an attachment Token in payment[1].")
306260 else if ((pmt.assetId != USDTAssetID))
307261 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.")
308- else if ((1000000 > pmt.amount))
309- then throw("Your Attached USDT Amount is very low. Attach Atleast 1 USDT to Claim the minimum Tokens.")
262+ else if ((10000000 > pmt.amount))
263+ then throw("Your Attached USDT Amount is very low. Attach Atleast 10 USDT to Claim the minimum Tokens.")
310264 else if ((CheckUSDTBalance == 0))
311265 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
312266 else if ((CheckAssetBalance == 0))
313267 then throw("Swap Pair Need to Add Liquidity first into Pool. Only After that Pair will be activated for Swapping.")
314268 else if ((quantityofpriceasset > CheckAssetBalance))
315269 then throw((("Pool Only has a Liquidity of " + toString(CheckAssetBalance)) + " Tokens. Add Liquidity into Pool."))
316- else [IntegerEntry(("Total_Swap_Fee_Collected_" + EnterAssetID), NewSumupofUSDTToAssetSwapFee), IntegerEntry("Total_of_Swaps_Txns", NewSumupofSwapTxns), 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))]
270+ 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))]
317271 }
318272
319273
320274
321275 @Callable(i)
322276 func AddLiquidity (EnterAssetID) = {
323277 let calleraddress = toBase58String(i.caller.bytes)
324278 let pmt1 = value(i.payments[0])
325279 let pmt2 = value(i.payments[1])
326280 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
327281 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
328282 let ReissueassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or May be not Generated."))
329283 let CurrentVotingStatus = "F"
330- let AddLiquidityFee = 100000
331284 let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))
332285 let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID))
333- let newpriceofAsset = fraction(CheckUSDTBalance, 1, CheckAssetBalance)
334- let quantityofEnterAssetID = fraction(1, pmt1.amount, newpriceofAsset)
335- let quantityofLPToken1 = pmt2.amount
286+ let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
287+ let decimals = decimalsinfo.decimals
288+ let arg1 = pow((CheckUSDTBalance / pow(10, 6, 6, 0, 0, UP)), 0, 1, 0, 0, UP)
289+ let arg2 = pow((CheckAssetBalance / pow(10, decimals, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
290+ let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
291+ let bothassetsdecimals = (6 + decimals)
292+ let sharedecimals = (bothassetsdecimals / 2)
293+ let quantityofEnterAssetID = fraction(args3, pmt1.amount, pow(10, 0, bothassetsdecimals, 0, 0, UP))
294+ 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)
336295 let USDTHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
337296 case a: Int =>
338297 a
339298 case _ =>
340299 0
341300 }
342- let NewUSDTHoldingInPair = (USDTHoldingInPair + pmt1.amount)
301+ let NewUSDTHoldingInPair = (USDTHoldingInPair + pmt2.amount)
343302 let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) {
344303 case a: Int =>
345304 a
346305 case _ =>
347306 0
348307 }
349- let NewAssetHoldingInPair = (AssetHoldingInPair + pmt2.amount)
308+ let NewAssetHoldingInPair = (AssetHoldingInPair + pmt1.amount)
350309 let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
351310 case a: Int =>
352311 a
353312 case _ =>
354313 0
355314 }
356315 let NewLPTokenIssued = (LPTokenIssued + quantityofLPToken1)
357316 if ((checkpairisavailableornot != EnterAssetID))
358317 then throw("Pair is not available in Whitelisted Asset.")
359318 else if ((VotingStatus == CurrentVotingStatus))
360319 then throw((EnterAssetID + " is not A Whitelisted Token Yet."))
361320 else if ((EnterAssetID == toBase58String(USDTAssetID)))
362- then throw("Input can Never be a USDT AssetID. Enter Whitelisted AssetID in input as well as in payment[1] and Attach USDT as an attachment Token in payment[2].")
321+ 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].")
363322 else if ((size(i.payments) != 2))
364- then throw("Two attached assets expected as payment in 50%-50%. Kindly Attach payment1 = USDT Token and payment2 = Token you want to add for Liquidity.")
365- else if ((pmt1.assetId != USDTAssetID))
366- then throw("Incorrect asset attached for Liquidity in payment[1], please attach USDT Token only.")
367- else if ((10000000 > pmt1.amount))
368- then throw("please attach atleast 10 USDT in payment[1].")
369- else if ((pmt2.assetId == USDTAssetID))
370- then throw("You Attached USDT asset for Liquidity in both payments, Kindly Attach payment1 = USDT Token and payment2 = Token you want to add for Liquidity.")
371- else if ((pmt2.assetId != fromBase58String(EnterAssetID)))
372- then throw((("Asset String " + EnterAssetID) + " is not matching with attached payment[2]. String and payment[2] must be same."))
373- else if ((pmt2.amount != quantityofEnterAssetID))
374- then throw(("Attached payment[2] quantity is not matching as per attached payment[1] USDT.It must be " + toString(quantityofEnterAssetID)))
375- 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)]
323+ 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.")
324+ else if ((pmt1.assetId == USDTAssetID))
325+ then throw("You Attached USDT asset in payment[1], please attach only whitelisted Token in payment[1] along with USDT in payment[2].")
326+ else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
327+ then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
328+ else if ((pmt1.assetId != fromBase58String(EnterAssetID)))
329+ then throw("Incorrect asset attached for Liquidity in payment[1], please attach String Asset or Whitelisted Token only.")
330+ else if ((pmt2.assetId != USDTAssetID))
331+ then throw("Wrong Asset Attached in payments[2], Please attach payment[1] = Liquidity Token & payment[2] = USDT Token.")
332+ else if ((10000000 > pmt2.amount))
333+ then throw("please attach atleast 10 USDT in payment[2] & Equivalent worth of Token in payment[1]")
334+ else if ((pmt2.amount != quantityofEnterAssetID))
335+ then throw(("Attached payment[2] quantity is not matching as per attached payment[1].payment[2] must be " + toString(quantityofEnterAssetID)))
336+ 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)]
376337 }
377338
378339
379340
380341 @Callable(i)
381-func RemovePairEntry (EnterAssetID) = {
382- let adminrights = getStringValue(this, "Polarity_Admin_Rights")
383- let checkendheight = getIntegerValue(this, ("Voting_EH_" + EnterAssetID))
342+func RemoveLiquidity (EnterAssetID) = {
343+ let calleraddress = toBase58String(i.caller.bytes)
344+ let pmt = if ((size(i.payments) == 1))
345+ then i.payments[0]
346+ else throw("No payment attached, Please Attach LP Token as payment[1].")
384347 let checkpairisavailableornot = getString(this, ("Pair_UV_" + EnterAssetID))
385348 let VotingStatus = getStringValue(this, ("Voting_Status_" + EnterAssetID))
386- let NewVotingStatus = "P"
387- let calleraddress = toBase58String(i.caller.bytes)
388- let currentheight = height
389- let pendingblocksforprojectexpire = (checkendheight - height)
349+ let ReissueableassetId = fromBase58String(valueOrErrorMessage(getString(this, ("LP_" + EnterAssetID)), "LP Token is Missing or not Generated."))
350+ let CurrentVotingStatus = "F"
351+ let CheckUSDTBalance = getIntegerValue(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID)))
352+ let CheckAssetBalance = getIntegerValue(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID))
353+ let decimalsinfo = valueOrErrorMessage(assetInfo(fromBase58String(EnterAssetID)), (("Asset " + EnterAssetID) + " doesn't exist"))
354+ let decimals = decimalsinfo.decimals
355+ let arg1 = pow((CheckUSDTBalance / pow(10, 6, 6, 0, 0, UP)), 0, 1, 0, 0, UP)
356+ let arg2 = pow((CheckAssetBalance / pow(10, decimals, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
357+ let args3 = pow((((arg1 * 1000000) / arg2) * pow(10, 0, decimals, 0, 0, UP)), 0, 1, 0, 0, UP)
358+ let bothassetsdecimals = (6 + decimals)
359+ let sharedecimals = (bothassetsdecimals / 2)
360+ let SquareofAttachedPymt = fraction(pow(pmt.amount, sharedecimals, 2, 0, 6, HALFUP), 1, fraction(args3, 1, pow(10, 0, 6, 0, 0, UP)))
361+ let SqrtofAttachPymt = pow(SquareofAttachedPymt, 0, 5, 1, sharedecimals, DOWN)
362+ let UserLPWorth = fraction(args3, SqrtofAttachPymt, pow(10, 0, bothassetsdecimals, 0, 0, UP))
363+ let USDTHoldingInPair = match getInteger(this, ((("Balance_of_" + EnterAssetID) + "_") + toBase58String(USDTAssetID))) {
364+ case a: Int =>
365+ a
366+ case _ =>
367+ 0
368+ }
369+ let NewUSDTHoldingInPair = (USDTHoldingInPair - UserLPWorth)
370+ let AssetHoldingInPair = match getInteger(this, ((("Balance_of_" + toBase58String(USDTAssetID)) + "_") + EnterAssetID)) {
371+ case a: Int =>
372+ a
373+ case _ =>
374+ 0
375+ }
376+ let NewAssetHoldingInPair = (AssetHoldingInPair - SqrtofAttachPymt)
377+ let LPTokenIssued = match getIntegerValue(this, ("Total_LP_" + EnterAssetID)) {
378+ case a: Int =>
379+ a
380+ case _ =>
381+ 0
382+ }
383+ let NewLPTokenIssued = (LPTokenIssued - pmt.amount)
390384 if ((checkpairisavailableornot != EnterAssetID))
391- then throw("Pair is not available in Voting List.")
392- else if ((adminrights != calleraddress))
393- then throw((("I know You are not An Admin. Only " + adminrights) + " has rights to remove the pair."))
394- else if ((checkendheight > height))
395- then throw((("Voting Already Running. You can remove the pair after " + toString(pendingblocksforprojectexpire)) + " Blocks"))
396- else if ((VotingStatus == NewVotingStatus))
397- then throw((EnterAssetID + " is now Whitelisted. So you can't remove it."))
398- 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))]
385+ then throw("Pair is not available in Whitelist.")
386+ else if ((VotingStatus == CurrentVotingStatus))
387+ then throw((EnterAssetID + " is not A Whitelist Token Yet."))
388+ else if ((fromBase58String(EnterAssetID) == USDTAssetID))
389+ then throw("Don't choose USDT AssetID as Input, Only Whitelisted Asset as Input String & Attach LP Tokens as payment[1]")
390+ else if ((pmt.assetId != ReissueableassetId))
391+ then throw("Wrong Asset is attached in payment[1] or LP Token Not Found or Missing.")
392+ 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))]
399393 }
400394
401395
402396
403397 @Callable(i)
404398 func RemoveEntry (Key,Key1,Key2,Key3) = [DeleteEntry(Key), DeleteEntry(Key1), DeleteEntry(Key2), DeleteEntry(Key3)]
405399
406400
407401 @Verifier(tx)
408402 func verify () = match tx {
409403 case _ =>
410404 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
411405 }
412406

github/deemru/w8io/169f3d6 
101.27 ms