Skip to content

Instantly share code, notes, and snippets.

@zhourunlai
zhourunlai / inf.ts
Last active April 16, 2024 07:53
arbitrageur
#!/usr/bin/env node
const solMint = 'So11111111111111111111111111111111111111112';
const infMint = '5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm';
const jitosolMint = 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn';
const solInitAmount = 100000000000;
const jitosolRate = 1.10209433278
// 1. https://jup.ag/swap/SOL-INF
function step1_On_Jup(solAmount) {
@zhourunlai
zhourunlai / keybase.md
Created November 23, 2016 08:33
keybase

Keybase proof

I hereby claim:

  • I am zhourunlai on github.
  • I am xiaorun (https://keybase.io/xiaorun) on keybase.
  • I have a public key whose fingerprint is 5786 03D0 B9B7 C125 B5E5 611D B508 B3B8 2327 44B7

To claim this, I am signing this object: