current position:Home>How can a token in Tron wave field and TRX Group LP, pair contract obtain the quantity of a token through LP?

How can a token in Tron wave field and TRX Group LP, pair contract obtain the quantity of a token through LP?

2022-02-03 20:42:55 Q & A of Denglian community

There is such a need , The user adds a token to add a LP, A certain number of tokens A And TRX Added LP, How to pass LP Get this token A How about the number of ~~




Take the answer 1:
  1. adopt lp get lp Total amount
  2. adopt lp get A And TRX Total amount (reserves)
  3. Calculation lp stay lp Share of the total
  4. according to 3 Calculated share Held A The number of





Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032042534675.html

Random recommended