Skip to content

Instantly share code, notes, and snippets.

View matt783's full-sized avatar
🤔
I may be slow to respond.

blockreacher matt783

🤔
I may be slow to respond.
View GitHub Profile
@matt783
matt783 / PoWHr.sol
Created January 29, 2020 13:47 — forked from RossPfeiffer/PoWHr.sol
PrismTokenomics.com
pragma solidity ^ 0.5.1;
contract PoWHr{
// scaleFactor is used to convert Ether into bonds and vice-versa: they're of different
// orders of magnitude, hence the need to bridge between the two.
uint256 constant scaleFactor = 0x10000000000000000;
int constant crr_n = 1;
int constant crr_d = 2;
int constant public price_coeff = -0x1337FA66607BADA55;