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