Skip to content

Commit

Permalink
test(refundratio): clean files
Browse files Browse the repository at this point in the history
  • Loading branch information
zgorizzo69 committed Nov 19, 2021
1 parent 07516ee commit ba7c8d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 323 deletions.
7 changes: 0 additions & 7 deletions contracts/Foundry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import "./interfaces/IHub.sol";
import "./interfaces/IFoundry.sol";
import "./libs/WeightedAverage.sol";
import "./libs/Details.sol";
import "hardhat/console.sol";

contract Foundry is IFoundry, Ownable, Initializable {
using SafeERC20 for IERC20;
Expand Down Expand Up @@ -125,7 +124,6 @@ contract Foundry is IFoundry, Ownable, Initializable {
) {
meToken_ = meTokenRegistry.finishResubscribe(_meToken);
}
console.log("## ## ## burn meToken_.hubId:%s", meToken_.hubId);
// Calculate how many tokens tokens are returned
uint256 tokensReturned = calculateBurnReturn(_meToken, _meTokensBurned);

Expand All @@ -151,11 +149,6 @@ contract Foundry is IFoundry, Ownable, Initializable {
} else {
if (hub_.targetRefundRatio > 0) {
// Hub is updating
console.log(
"## ## ## burn weigthed refundRatio:%s targetRefundRatio:%s",
hub_.refundRatio,
hub_.targetRefundRatio
);
actualTokensReturned =
(tokensReturned *
WeightedAverage.calculate(
Expand Down
Loading

0 comments on commit ba7c8d8

Please sign in to comment.