Skip to content

Commit

Permalink
Remove ignore fee deploy feature (#298)
Browse files Browse the repository at this point in the history
* Removes ignore-fee-deploy feature flag

---------

Co-authored-by: lastemp <[email protected]>
  • Loading branch information
jgur-psyops and lastemp authored Feb 11, 2025
1 parent f1384c4 commit f258b4e
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion DEPLOY_GUIDE_STAGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Staging is different from mainnet only in that it uses a different key. Ensure t

* Note: this rarely works, the program is probably too chonky.
* Build with `anchor build -p marginfi -- --no-default-features --features staging`
* If this is your first time deploying (to a new key), with `anchor build -p marginfi -- --no-default-features --features staging ignore-fee-deploy`
* If this is your first time deploying (to a new key), with `anchor build -p marginfi -- --no-default-features --features staging`
* Ensure anchor.toml is configured like this:
```
[provider]
Expand Down
1 change: 0 additions & 1 deletion programs/brick/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build"]
test = []
ignore-fee-deploy = []

[dependencies]
# Remove workspace = true if already defined in the root Cargo.toml
Expand Down
1 change: 0 additions & 1 deletion programs/liquidity-incentive-program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ devnet = ["marginfi/devnet"]
mainnet-beta = ["marginfi/mainnet-beta"]
test = []
test-bpf = []
ignore-fee-deploy = []

[dependencies]
anchor-lang = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion programs/marginfi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ devnet = []
mainnet-beta = []
debug = []
staging = []
ignore-fee-deploy = []

[dependencies]
solana-program = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion programs/marginfi/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ capture_log = ["log", "log4rs"]

[dependencies.marginfi]
path = ".."
features = ["no-entrypoint", "debug", "client", "ignore-fee-deploy"]
features = ["no-entrypoint", "debug", "client"]

# Prevent this from interfering with workspaces
[workspace]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ pub fn initialize_fee_state(
program_fee_rate: WrappedI80F48,
) -> Result<()> {
let mut fee_state = ctx.accounts.fee_state.load_init()?;
cfg_if::cfg_if! {
if #[cfg(all(feature = "mainnet-beta", not(feature = "ignore-fee-deploy")))] {
if ctx.accounts.payer.key != &pubkey!("3HGdGLrnK9DsnHi1mCrUMLGfQHcu6xUrXhMY14GYjqvM") {
panic!("The mrgn program multisig must sign on mainnet.");
}
}
}
fee_state.global_fee_admin = admin_key;
fee_state.global_fee_wallet = fee_wallet;
fee_state.key = ctx.accounts.fee_state.key();
Expand Down
1 change: 0 additions & 1 deletion programs/mocks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ devnet = []
mainnet-beta = []
debug = []
staging = []
ignore-fee-deploy = []

[dependencies]
anchor-lang = { workspace = true }
Expand Down
1 change: 0 additions & 1 deletion programs/test_transfer_hook/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ edition = "2021"
[features]
idl-build = []
no-entrypoint = []
ignore-fee-deploy = []

[lib]
crate-type = ["cdylib", "lib"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ else
exit 1
fi

cmd="anchor build -p $program_lib_name -- $features ignore-fee-deploy"
cmd="anchor build -p $program_lib_name -- $features"
echo "Running: $cmd"
eval "$cmd"
2 changes: 1 addition & 1 deletion scripts/build-workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
ROOT=$(git rev-parse --show-toplevel)
cd $ROOT

cmd="anchor build --no-idl -- --features ignore-fee-deploy"
cmd="anchor build --no-idl -- --features"
echo "Running: $cmd"
eval "$cmd"

0 comments on commit f258b4e

Please sign in to comment.