mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-17 23:16:48 +00:00
openner
This commit is contained in:
@@ -44,7 +44,13 @@ pub fn open(signer: Pubkey, id: u64) -> Instruction {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn close(signer: Pubkey, fee_collector: Pubkey, recipient: Pubkey, id: u64) -> Instruction {
|
||||
pub fn close(
|
||||
signer: Pubkey,
|
||||
fee_collector: Pubkey,
|
||||
opener: Pubkey,
|
||||
recipient: Pubkey,
|
||||
id: u64,
|
||||
) -> Instruction {
|
||||
let block_adddress = block_pda(id).0;
|
||||
let config_address = config_pda().0;
|
||||
let collateral_address = collateral_pda(id).0;
|
||||
@@ -66,6 +72,7 @@ pub fn close(signer: Pubkey, fee_collector: Pubkey, recipient: Pubkey, id: u64)
|
||||
AccountMeta::new(market_address, false),
|
||||
AccountMeta::new(base_mint_address, false),
|
||||
AccountMeta::new(MINT_ADDRESS, false),
|
||||
AccountMeta::new(opener, false),
|
||||
AccountMeta::new(recipient, false),
|
||||
AccountMeta::new_readonly(TREASURY_ADDRESS, false),
|
||||
AccountMeta::new(vault_base, false),
|
||||
|
||||
@@ -16,6 +16,9 @@ pub struct Block {
|
||||
/// The block number.
|
||||
pub id: u64,
|
||||
|
||||
/// The party that opened the block.
|
||||
pub opener: Pubkey,
|
||||
|
||||
/// The reward configuration.
|
||||
pub reward: RewardConfig,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user