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

Feat: suilend #4

Merged
merged 15 commits into from
Feb 10, 2025
Merged

Feat: suilend #4

merged 15 commits into from
Feb 10, 2025

Conversation

hkhangus
Copy link
Contributor

No description provided.

@hkhangus hkhangus requested a review from toannhu96 February 10, 2025 08:30
type: "UNSTAKING",
amount: input.amount,
symbol: input.symbol,
poolId: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

remove đi


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")
Copy link
Contributor

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

}

// check balance
const balancesMetadata = await get_holding(agent);
Copy link
Contributor

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.


const lendingSuilend: Action = {
name: "LENDING_SUILEND",
similes: ["lending suilend", "lend to suilend", "suilend lend"],
Copy link
Contributor

Choose a reason for hiding this comment

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

deposit to suilend


const stakeSuilend: Action = {
name: "STAKE_SUILEND",
similes: ["stake suilend", "stake to suilend", "suilend stake"],
Copy link
Contributor

Choose a reason for hiding this comment

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

stake LST


const unstakeSuilend: Action = {
name: "UNSTAKE_SUILEND",
similes: ["unstake suilend", "unstake from suilend", "suilend unstake"],
Copy link
Contributor

Choose a reason for hiding this comment

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

unstake LST

let amount = Number(params.amount);

// get metadata
const balancesMetadata = await get_holding(agent);
Copy link
Contributor

Choose a reason for hiding this comment

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

bỏ

@hkhangus hkhangus merged commit 3aa7402 into main Feb 10, 2025
1 check passed
@hkhangus hkhangus deleted the feat/suilend branch February 14, 2025 06:54
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.

2 participants