-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feat: suilend #4
Conversation
src/actions/agent/unstakeSuilend.ts
Outdated
type: "UNSTAKING", | ||
amount: input.amount, | ||
symbol: input.symbol, | ||
poolId: "", |
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.
remove đi
src/langchain/agent/stake_suilend.ts
Outdated
|
||
Inputs (input is a JSON string): | ||
amount: number - The amount of tokens to stake (required, e.g 0.1, 0.01, 0.001, 1, ...) | ||
symbol: string - The token symbol to stake (required, e.g., "sSUI") |
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.
tạo bảng map lowercase vs token symbol
src/tools/suilend/borrow.ts
Outdated
} | ||
|
||
// check balance | ||
const balancesMetadata = await get_holding(agent); |
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.
check position thay vì check balance. Nếu có lending position as collateral thì mới cho phép user đi vay.
e935607
to
c853b01
Compare
src/actions/agent/lendingSuilend.ts
Outdated
|
||
const lendingSuilend: Action = { | ||
name: "LENDING_SUILEND", | ||
similes: ["lending suilend", "lend to suilend", "suilend lend"], |
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.
deposit to suilend
src/actions/agent/stakeSuilend.ts
Outdated
|
||
const stakeSuilend: Action = { | ||
name: "STAKE_SUILEND", | ||
similes: ["stake suilend", "stake to suilend", "suilend stake"], |
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.
stake LST
src/actions/agent/unstakeSuilend.ts
Outdated
|
||
const unstakeSuilend: Action = { | ||
name: "UNSTAKE_SUILEND", | ||
similes: ["unstake suilend", "unstake from suilend", "suilend unstake"], |
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.
unstake LST
src/tools/suilend/unstaking.ts
Outdated
let amount = Number(params.amount); | ||
|
||
// get metadata | ||
const balancesMetadata = await get_holding(agent); |
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.
bỏ
No description provided.