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: limo simple searcher #1943

Merged
merged 5 commits into from
Sep 20, 2024
Merged

feat: limo simple searcher #1943

merged 5 commits into from
Sep 20, 2024

Conversation

m30m
Copy link
Collaborator

@m30m m30m commented Sep 20, 2024

This PR adds a new searcher example which is integrated with the limo program. This can be used to understand how svm integrations would look like in the future.

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 4:37pm
pyth-staking-v2-mainnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 4:37pm
staking-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 4:37pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 20, 2024 4:37pm

Copy link
Contributor

@danimhr danimhr left a comment

Choose a reason for hiding this comment

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

Should'nt we update the version of SDK?

}
}
console.log(
`Bid status for bid ${bidStatus.id}: ${bidStatus.type.replaceAll(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we dont need this part anymore. statuses are: [pending, submitted, lost, won]
Previously we used this line for simulated_failed status which is deprecated.

const outputMintDecimals = await this.clientLimo.getOrderOutputMintDecimals(
order
);
const inputAmount = new Decimal(
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe calculate outputAmount like this?

.alias("help", "h")
.parseSync();
async function run() {
if (SVM_CONSTANTS[argv.chainId] === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if (!SVM_CONSTANTS[argv.chainId])

@m30m m30m merged commit a01cb0e into main Sep 20, 2024
7 checks passed
@m30m m30m deleted the per-limo-ex branch September 20, 2024 17:00
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