const txBuilder = scallopSui.createTxBuilder(obl);
txBuilder.addCollateral(SUI);
const USDC = txBuilder.borrow(1000, 'USDCType');
// ... do some arbitrage here
txBuilder.repay(USDC)
const SUI = txBuilder.withdraw('SUIType')
txBuilder.transferObjects([SUI], sender)
@scallop-dao/sui-sdk![This package contains built-in TypeScript declarations TypeScript icon, indicating that this package has built-in type declarations](https://static-production.npmjs.com/255a118f56f5346b97e56325a1217a16.svg)
0.1.1 • Public • Published Dependents (0)
Package Sidebar
Install
npm i @scallop-dao/sui-sdk
Repository
Weekly Downloads
1
Version
0.1.1
License
Apache-2.0
Unpacked Size
79.8 kB
Total Files
12