TokenEdit: remove bank_num arg

This commit is contained in:
Christian Kamm 2022-09-02 13:14:27 +02:00
parent 899b51e91c
commit 347b225480
4 changed files with 0 additions and 13 deletions

View File

@ -12,7 +12,6 @@ use crate::state::*;
/// In addition to these accounts, all banks must be passed as remaining_accounts
/// in MintInfo order.
#[derive(Accounts)]
#[instruction(bank_num: u64)]
pub struct TokenEdit<'info> {
#[account(
has_one = admin,
@ -31,7 +30,6 @@ pub struct TokenEdit<'info> {
#[allow(clippy::too_many_arguments)]
pub fn token_edit(
ctx: Context<TokenEdit>,
bank_num: u64,
oracle_opt: Option<Pubkey>,
oracle_config_opt: Option<OracleConfig>,
group_insurance_fund_opt: Option<bool>,

View File

@ -101,7 +101,6 @@ pub mod mango_v4 {
#[allow(clippy::too_many_arguments)]
pub fn token_edit(
ctx: Context<TokenEdit>,
bank_num: u64,
oracle_opt: Option<Pubkey>,
oracle_config_opt: Option<OracleConfig>,
group_insurance_fund_opt: Option<bool>,
@ -116,7 +115,6 @@ pub mod mango_v4 {
) -> Result<()> {
instructions::token_edit(
ctx,
bank_num,
oracle_opt,
oracle_config_opt,
group_insurance_fund_opt,

View File

@ -288,7 +288,6 @@ export class MangoClient {
return await this.program.methods
.tokenEdit(
new BN(0),
oracle,
{
confFilter: {

View File

@ -502,10 +502,6 @@ export type MangoV4 = {
}
],
"args": [
{
"name": "bankNum",
"type": "u64"
},
{
"name": "oracleOpt",
"type": {
@ -5816,10 +5812,6 @@ export const IDL: MangoV4 = {
}
],
"args": [
{
"name": "bankNum",
"type": "u64"
},
{
"name": "oracleOpt",
"type": {