mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-22 23:16:46 +00:00
sdk
This commit is contained in:
@@ -20,7 +20,11 @@ pub fn process_deposit(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResu
|
||||
.assert_mut(|b| clock.slot < b.start_slot)?;
|
||||
collateral_info
|
||||
.is_writable()?
|
||||
.as_associated_token_account(block_info.key, mint_ore_info.key)?;
|
||||
.has_address(&collateral_pda(block.id).0)?
|
||||
.as_token_account()?
|
||||
.assert(|t| t.mint() == *mint_ore_info.key)?
|
||||
.assert(|t| t.owner() == *block_info.key)?;
|
||||
// .as_associated_token_account(block_info.key, mint_ore_info.key)?;
|
||||
mint_ore_info.has_address(&MINT_ADDRESS)?.as_mint()?;
|
||||
sender_info
|
||||
.is_writable()?
|
||||
|
||||
Reference in New Issue
Block a user