mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-26 22:51:14 +00:00
fix(stablecoin): annotate initialize_program guest accounts
This commit is contained in:
@@ -8,38 +8,38 @@
|
||||
{
|
||||
"name": "admin",
|
||||
"writable": false,
|
||||
"signer": false,
|
||||
"signer": true,
|
||||
"init": false
|
||||
},
|
||||
{
|
||||
"name": "protocol_parameters",
|
||||
"writable": false,
|
||||
"writable": true,
|
||||
"signer": false,
|
||||
"init": false
|
||||
"init": true
|
||||
},
|
||||
{
|
||||
"name": "stability_fee_accumulator",
|
||||
"writable": false,
|
||||
"writable": true,
|
||||
"signer": false,
|
||||
"init": false
|
||||
"init": true
|
||||
},
|
||||
{
|
||||
"name": "redemption_price_state",
|
||||
"writable": false,
|
||||
"writable": true,
|
||||
"signer": false,
|
||||
"init": false
|
||||
"init": true
|
||||
},
|
||||
{
|
||||
"name": "stablecoin_definition",
|
||||
"writable": false,
|
||||
"writable": true,
|
||||
"signer": false,
|
||||
"init": false
|
||||
"init": true
|
||||
},
|
||||
{
|
||||
"name": "stablecoin_master_holding",
|
||||
"writable": false,
|
||||
"writable": true,
|
||||
"signer": false,
|
||||
"init": false
|
||||
"init": true
|
||||
},
|
||||
{
|
||||
"name": "collateral_definition",
|
||||
|
||||
@@ -28,11 +28,17 @@ mod stablecoin {
|
||||
)]
|
||||
pub fn initialize_program(
|
||||
ctx: ProgramContext,
|
||||
#[account(signer)]
|
||||
admin: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
protocol_parameters: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
stability_fee_accumulator: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
redemption_price_state: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
stablecoin_definition: AccountWithMetadata,
|
||||
#[account(init)]
|
||||
stablecoin_master_holding: AccountWithMetadata,
|
||||
collateral_definition: AccountWithMetadata,
|
||||
market_price_oracle: AccountWithMetadata,
|
||||
|
||||
Reference in New Issue
Block a user