-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
programs/castle-lending-aggregator/src/instructions/update_deposit_cap.rs
Show resolved
Hide resolved
programs/castle-lending-aggregator/src/instructions/update_deposit_cap.rs
Show resolved
Hide resolved
sdk/src/client.ts
Outdated
) | ||
); | ||
|
||
const txs: SendTxRequest[] = []; |
There was a problem hiding this comment.
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
@@ -387,6 +387,23 @@ describe("castle-vault", () => { | |||
assert.equal(userLpBalance, 0); | |||
assert.equal(lpTokenSupply, 0); | |||
}); | |||
|
|||
it("Update deposit cap", async function () { |
There was a problem hiding this comment.
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?
tests/castle-lending-aggregator.ts
Outdated
}); | ||
testDepositAndWithdrawal(); | ||
}); | ||
// describe("Deposit and withdrawal", () => { |
There was a problem hiding this comment.
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? :)
There was a problem hiding this comment.
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
tests/castle-lending-aggregator.ts
Outdated
txs[txs.length - 1], | ||
"singleGossip" | ||
); | ||
assert.ok(false); |
There was a problem hiding this comment.
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.
Added methods for the on-chain program and the client sdk to update the deposit cap.