Back to Home

BancorFormula

0x8d10c03bc088...a19ac7395b98
Spurious DragonSource VerifiedEdit this contract
Deployed June 22, 2017 (9 years ago)Block 3,912,778

The original Bancor pricing formula, computing purchase and sale returns for Smart Tokens from supply, reserve and reserve ratio.

Spurious Dragon EraVerified Source

Historical Significance

The first deployed version of the bonding-curve style formula behind Bancor's reserve-based pricing, deployed 2017-06-22 for the BNT converter.

Key Facts
Deployment Block
3,912,778
Deployment Date
Jun 22, 2017, 11:07 AM
Code Size
2.9 KB

Description

Implements the Bancor price calculation. calculatePurchaseReturn and calculateSaleReturn take a Smart Token's supply, reserve balance and reserve ratio and return how many tokens a deposit buys or how much reserve a sale returns, using fixed-point logarithm and exponent functions.

Source Verified

SolidityEtherscan verified
Compiler: v0.4.11

Historian Categories

DeFiUtility

Bytecode Overview

Opcodes2,992
Unique Opcodes204
Jump Instructions177
Storage Operations24

External Links

Related contracts