The pTokenMaster is the main Peaches.Finance contract, it implements the logic for Safe, through which users can mint new pTokens against their deposited collateral (DAI, USDt, USDc Stablecoins OR corresponding LP tokens). Current prices of minted pTokens are provided by Cahinlink Price Oracles and determine the Cratio of each Safe. The pTokenMaster Contract also contains the logic for liquidating Safes with Cratios below the minimum for their minted pTokes..
interface IpTokenMaster {
function open(uint collateral, uint amount, uint id, uint synid) external;
function close(uint id) external;
function deposit(uint id, uint collateral) external;
function withdraw(uint id, uint amount) external;
function burn(uint id, uint amount) external;
function mint(uint id, uint amount) external;
function liquidate(uint id, address account, uint amount) external;
This software is experimental please use at your own risk.
Copy link