Changing Position Mode
Change a position's mode.
Users can change their positions to another mode to increase the positions' health factors from better token factors.
// Example change mode function
function changeMode(uint256 posId, uint16 newMode) external {
// 1. change position mode
IInitCore(INIT_CORE).setPosMode(posId, newMode);
}
Last updated