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
0.1.1 • Public • Published/@scallop-dao/sui-sdk/
Package Sidebar
Install
npm i @scallop-dao/sui-sdk
Repository
Weekly Downloads
0
Version
0.1.1
License
Apache-2.0
Unpacked Size
79.8 kB
Total Files
12