Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(contracts): fork mainnet in the tests #36

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/contracts/contracts/core/HackMoneyVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ contract HackMoneyVault is Multicall, Ownable, BaseVault {
uint premiumExchangeValue
) = strategy.doTrade(size);
// update the remaining locked amount
console.log(
"vaultState.lockedAmountLeft:",
vaultState.lockedAmountLeft
);
console.log("capitalUsed:", capitalUsed);
vaultState.lockedAmountLeft = vaultState.lockedAmountLeft - capitalUsed;

// todo: udpate events
Expand Down
125 changes: 0 additions & 125 deletions packages/contracts/contracts/core/LyraVaultFuerte.sol

This file was deleted.

46 changes: 46 additions & 0 deletions packages/contracts/contracts/interfaces/IDelegateApprovals.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pragma solidity >=0.4.24;

// https://docs.synthetix.io/contracts/source/interfaces/idelegateapprovals
interface IDelegateApprovals {
// Views
function canBurnFor(address authoriser, address delegate)
external
view
returns (bool);

function canIssueFor(address authoriser, address delegate)
external
view
returns (bool);

function canClaimFor(address authoriser, address delegate)
external
view
returns (bool);

function canExchangeFor(address authoriser, address delegate)
external
view
returns (bool);

// Mutative
function approveAllDelegatePowers(address delegate) external;

function removeAllDelegatePowers(address delegate) external;

function approveBurnOnBehalf(address delegate) external;

function removeBurnOnBehalf(address delegate) external;

function approveIssueOnBehalf(address delegate) external;

function removeIssueOnBehalf(address delegate) external;

function approveClaimOnBehalf(address delegate) external;

function removeClaimOnBehalf(address delegate) external;

function approveExchangeOnBehalf(address delegate) external;

function removeExchangeOnBehalf(address delegate) external;
}
Loading