Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contracts: fix 'r' bonding curve parameter to match specification #241

Merged
merged 15 commits into from Aug 28, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Using the local token for the test.

  • Loading branch information
Freydal committed Aug 28, 2019
commit 4997140f23e797011a19d217de573708a8348e8a
@@ -155,11 +155,14 @@ describe("KosuToken", () => {
});

it("should empty the contract", async () => {
await kosuToken.releaseTokens.awaitTransactionSuccessAsync(await kosuToken.balanceOf.callAsync(from));

const finalBalance = await kosuToken.balanceOf.callAsync(from);
const finalSupply = await kosuToken.totalSupply.callAsync();
const endingEther = await web3Wrapper.getBalanceInWeiAsync(kosuToken.address);
if ((await token.balanceOf.callAsync(from)).eq("0")) {
throw new Error(".only issue");
}
await token.releaseTokens.awaitTransactionSuccessAsync(await token.balanceOf.callAsync(from));

const finalBalance = await token.balanceOf.callAsync(from);
const finalSupply = await token.totalSupply.callAsync();
const endingEther = await web3Wrapper.getBalanceInWeiAsync(token.address);

"0".should.eq(finalBalance.toString());
"0".should.eq(finalSupply.toString());
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.