pTokenMaster
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..
1
interface IpTokenMaster {
2
3
function open(uint collateral, uint amount, uint id, uint synid) external;
4
5
function close(uint id) external;
6
7
function deposit(uint id, uint collateral) external;
8
9
function withdraw(uint id, uint amount) external;
10
11
function burn(uint id, uint amount) external;
12
13
function mint(uint id, uint amount) external;
14
15
function liquidate(uint id, address account, uint amount) external;
16
17
}
Copied!
This software is experimental please use at your own risk.
Last modified 5mo ago
Copy link