Power function for Bancor Formula

I have to implement the Bonding Curve contract, so I referred to this Yos Raidy article and found that it uses Bancor's efficient power function which used to be available in the openzeppelin/contracts library.

Now I have 2 questions and would be grateful if someone can help me.

  1. Why does openzeppelin no longer have the above-mentioned power function?
  2. How can I use the above-mentioned power function. I mean is there any other reliable library like @openzeppelin/contracts to achieve Bancor's efficient power function?

This was never part of OpenZeppelin Contracts. It was in a PR that wasn't merged. (https://github.com/OpenZeppelin/openzeppelin-contracts/pull/1246)

You could copy the code into your project and use it.

I see, thank you @frangio. Then I will copy the code and use it.