Skip to content

ZAIArbitrageBot

senamakel edited this page Jul 27, 2024 · 2 revisions

Solidity API

ZAIArbitrageBot

A permission-less arbitrage bot that can mint and burn ZAI stablecoin and maintain the peg using the PSM module

This uses the odos router to swap tokens

zai

contract IStablecoin zai

psm

contract IPegStabilityModule psm

constructor

constructor(address _zai, address _psm) public

arbitrage

function arbitrage() external

Executes an arbitrage trade to mint or burn ZAI stablecoin

_buy

function _buy(uint256 amount) internal

_sell

function _sell(uint256 amount) internal

Clone this wiki locally