0.1.1 • Published 3 years ago
@scallop-dao/sui-sdk v0.1.1
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)0.1.1
3 years ago