curationmarkets icon indicating copy to clipboard operation
curationmarkets copied to clipboard

Non-constant gas costs for token minting

Open GNSPS opened this issue 7 years ago • 1 comments

https://github.com/ConsenSys/curationmarkets/blob/master/CurationMarkets.sol#L71

Implements a correct yet very expensive system for token minting that linearly increases in execution price with the token amount being bought.

I propose modeling this along the lines of what Bancor has done with their continuous price function. (v. https://github.com/bancorprotocol/contracts/blob/master/solidity/contracts/BancorFormula.sol) (v. https://drive.google.com/file/d/0B3HPNP-GDn7aRkVaV3dkVl9NS2M/view)

GNSPS avatar May 24 '17 04:05 GNSPS

Yeah. I suspected there's a way to improve it, but I couldn't math well enough to fit it into a specific function. Will definitely take a look at the Bancor Formula.

simondlr avatar May 24 '17 14:05 simondlr