Sensei strategies
starknetjs.num.getDecimalString(hexAddress)Functions
deposit(amount: u256, receiver: ContractAddress);withdraw(amount: u256, receiver: ContractAddress, max_slippage_bps: u32);config() -> StrategyConfig
interface StrategyConfig {
// this is the token used by user to make the deposit (e.g. ETH)
main_token: ContractAddress,
main_offset: u128, // decimal offset used to handle shares
// internal token used by strategy to do looping (e.g. USDC)
secondary_token: ContractAddress,
secondary_offset: u128
}Last updated