You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Along my journey of scouring the existing code and documentation surrounding curve bonded tokens I've noticed two differing approaches:
The use of Integral formulas which will calculate the price give the inputs of _totalSupply, _poolBalance, and _amount. This initially cause me much trouble as I was accepting the value returned from these curves as the return amounts. After some testing I found that they were the integrals for the prices instead, which IMO is less than ideal.
The second approach I'm still wrapping my head around. The use of the BancorFormula seems to make it so that the smart contract can synthesize the correct amount of tokens given the input of _amount. I'm skeptical because this is much more complex of an approach and uses Bancor's "proprietary" smart contract. It needs some closer inspection and research. Ultimately I think the opportunity is bright along these lines by creating variation of the BancorFormula, but this is just late night conjecture.
The text was updated successfully, but these errors were encountered:
Along my journey of scouring the existing code and documentation surrounding curve bonded tokens I've noticed two differing approaches:
The use of Integral formulas which will calculate the
price
give the inputs of_totalSupply
,_poolBalance
, and_amount
. This initially cause me much trouble as I was accepting the value returned from these curves as the return amounts. After some testing I found that they were the integrals for the prices instead, which IMO is less than ideal.The second approach I'm still wrapping my head around. The use of the
BancorFormula
seems to make it so that the smart contract can synthesize the correct amount of tokens given the input of_amount
. I'm skeptical because this is much more complex of an approach and uses Bancor's "proprietary" smart contract. It needs some closer inspection and research. Ultimately I think the opportunity is bright along these lines by creating variation of theBancorFormula
, but this is just late night conjecture.The text was updated successfully, but these errors were encountered: