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

Feature/deposit cap api #18

Merged
merged 9 commits into from
Apr 12, 2022
Merged

Feature/deposit cap api #18

merged 9 commits into from
Apr 12, 2022

Conversation

yf-castel
Copy link
Contributor

Added methods for the on-chain program and the client sdk to update the deposit cap.

@yf-castel yf-castel requested review from aeksco and charlieyou April 10, 2022 09:50
)
);

const txs: SendTxRequest[] = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't need to be a list since it is only one tx being sent

@charlieyou charlieyou requested review from sunguru98 and removed request for aeksco April 10, 2022 14:02
@@ -387,6 +387,23 @@ describe("castle-vault", () => {
assert.equal(userLpBalance, 0);
assert.equal(lpTokenSupply, 0);
});

it("Update deposit cap", async function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an unhappy-case test that it fails if not signed / signed by wrong person?

});
testDepositAndWithdrawal();
});
// describe("Deposit and withdrawal", () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you comment these back in? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes of course, this was a mistake

txs[txs.length - 1],
"singleGossip"
);
assert.ok(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert.fail("Tx succeeded when it should have failed") might be better here.

@yf-castel yf-castel merged commit 6172369 into dev Apr 12, 2022
@yf-castel yf-castel deleted the feature/deposit-cap-api branch April 12, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants