Skip to content

project-7-swap #55

@Skgwd2018

Description

@Skgwd2018

project-7-swap/programs/swap/src/instructions/take_offer.rs
let accounts = CloseAccount {
account: context.accounts.vault.to_account_info(),
destination: context.accounts.taker.to_account_info(),
authority: context.accounts.offer.to_account_info(),
};

CloseAccount 中的 destination 应该是 context.accounts.maker.to_account_info() ? vault 是 maker 支付创建的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions