Skip to content

Commit

Permalink
updated peronio contract
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinkassis committed Feb 22, 2022
1 parent 5925f24 commit 19b3631
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 107 deletions.
7 changes: 0 additions & 7 deletions contracts/IPeronio.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,16 @@ interface IPeronio {

function decimals() external view returns (uint8);

// Sets initial minting. Can only be runned once
function initialize(uint256 usdcAmount, uint256 startingRatio) external;

// Sets markup for minting function
function setMarkup(uint256 markup_) external;

// Receive Collateral token and mints the proportional tokens
function mint(
address to,
uint256 usdcAmount,
uint256 minReceive
) external returns (uint256 peAmount);

// Receives Main token burns it and returns Collateral Token proportionally
function withdraw(address to, uint256 peAmount) external;

function claimRewards() external;
Expand All @@ -73,11 +69,8 @@ interface IPeronio {

function stakedBalance() external view returns (uint256);

// Gets current ratio: Collateral Balance in vault / Total Supply
function stakedValue() external view returns (uint256 totalUSDC);

function reservesValue() external view returns (uint256 totalUSDC);

function usdcPrice() external view returns (uint256);

function buyingPrice() external view returns (uint256);
Expand Down
Loading

0 comments on commit 19b3631

Please sign in to comment.