You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
Hey, just went through the docs, got things to work. Just some comments. In the demo contract
contract PotLike {
function chi() external returns (uint256);
function rho() external returns (uint256);
function drip() external returns (uint256);
function join(uint256) external;
function exit(uint256) external;
function pie(address) public view returns (uint);
}
Chi should be sent to view so I can call it later here to get the proper balance
function balance() public view returns (uint256) {
uint256 pie = pot.pie(address(this));
uint256 chi = pot.chi();
return pie * chi / RAY;
}
Anyways thought I would point that out cheers!
The text was updated successfully, but these errors were encountered:
Hey, just went through the docs, got things to work. Just some comments. In the demo contract
Chi should be sent to view so I can call it later here to get the proper balance
Anyways thought I would point that out cheers!
The text was updated successfully, but these errors were encountered: