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