{ "address": "HysTabVUfmQBFcmzu1ctRd1Y1fxd66RBpboy1bmtDSQQ", "metadata": { "name": "hylo_stability_pool", "version": "0.1.4", "spec": "0.1.0", "description": "Created with Anchor" }, "instructions": [ { "name": "get_stats", "discriminator": [ 241, 65, 112, 185, 230, 140, 139, 177 ], "accounts": [ { "name": "pool_config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "hylo", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 108, 111 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 85, 83, 68 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "levercoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 120, 83, 79, 76 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "pool_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 97, 117, 116, 104 ] } ] } }, { "name": "stablecoin_pool", "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "levercoin_pool", "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "lp_token_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 115, 116, 97, 107, 101, 100, 95, 104, 121, 85, 83, 68 ] } ] } }, { "name": "sol_usd_pyth_feed" } ], "args": [], "returns": { "defined": { "name": "StabilityPoolStats" } } }, { "name": "initialize_lp_token_mint", "discriminator": [ 188, 32, 168, 40, 166, 152, 159, 156 ], "accounts": [ { "name": "admin", "writable": true, "signer": true, "relations": [ "pool_config" ] }, { "name": "pool_config", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "lp_token_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "lp_token_mint" } ] } }, { "name": "lp_token_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 115, 116, 97, 107, 101, 100, 95, 104, 121, 85, 83, 68 ] } ] } }, { "name": "lp_token_metadata", "writable": true }, { "name": "metadata_program", "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "system_program", "address": "11111111111111111111111111111111" } ], "args": [] }, { "name": "initialize_stability_pool", "discriminator": [ 220, 103, 253, 62, 133, 245, 74, 222 ], "accounts": [ { "name": "admin", "writable": true, "signer": true }, { "name": "upgrade_authority", "signer": true }, { "name": "pool_config", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "pool_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 97, 117, 116, 104 ] } ] } }, { "name": "stablecoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "levercoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "stablecoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 85, 83, 68 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "levercoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 120, 83, 79, 76 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "program_data" }, { "name": "hylo_stability_pool", "address": "HysTabVUfmQBFcmzu1ctRd1Y1fxd66RBpboy1bmtDSQQ" } ], "args": [] }, { "name": "rebalance_lever_to_stable", "discriminator": [ 194, 252, 113, 42, 31, 248, 184, 211 ], "accounts": [ { "name": "payer", "writable": true, "signer": true }, { "name": "pool_config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "hylo", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 108, 111 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 85, 83, 68 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pool_auth", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 97, 117, 116, 104 ] } ] } }, { "name": "levercoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "fee_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 102, 101, 101, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "fee_vault", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "fee_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "levercoin_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 120, 83, 79, 76 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "sol_usd_pyth_feed" }, { "name": "stablecoin_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "levercoin_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "hylo_event_authority" }, { "name": "hylo_exchange_program", "address": "HYEXCHtHkBagdStcJCp3xbbb9B7sdMdWXFNj6mdsG4hn" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [] }, { "name": "rebalance_stable_to_lever", "discriminator": [ 210, 59, 29, 161, 20, 10, 3, 68 ], "accounts": [ { "name": "payer", "writable": true, "signer": true }, { "name": "pool_config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "hylo", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 108, 111 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 85, 83, 68 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "pool_auth", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 97, 117, 116, 104 ] } ] } }, { "name": "levercoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "fee_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 102, 101, 101, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "fee_vault", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "fee_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "levercoin_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 120, 83, 79, 76 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "sol_usd_pyth_feed" }, { "name": "stablecoin_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "levercoin_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "hylo_event_authority" }, { "name": "hylo_exchange_program", "address": "HYEXCHtHkBagdStcJCp3xbbb9B7sdMdWXFNj6mdsG4hn" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [] }, { "name": "update_admin", "discriminator": [ 161, 176, 40, 213, 60, 184, 179, 228 ], "accounts": [ { "name": "payer", "writable": true, "signer": true }, { "name": "upgrade_authority", "signer": true }, { "name": "pool_config", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "program_data" }, { "name": "hylo_stability_pool", "address": "HysTabVUfmQBFcmzu1ctRd1Y1fxd66RBpboy1bmtDSQQ" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "new_admin", "type": "pubkey" } ] }, { "name": "update_withdrawal_fee", "discriminator": [ 165, 235, 231, 25, 127, 99, 244, 133 ], "accounts": [ { "name": "admin", "writable": true, "signer": true, "relations": [ "pool_config" ] }, { "name": "pool_config", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "new_withdrawal_fee", "type": { "defined": { "name": "UFixValue64" } } } ] }, { "name": "user_deposit", "discriminator": [ 186, 198, 140, 233, 129, 39, 98, 153 ], "accounts": [ { "name": "user", "writable": true, "signer": true }, { "name": "pool_config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "hylo", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 108, 111 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 85, 83, 68 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "levercoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 120, 83, 79, 76 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "user_stablecoin_ta", "writable": true }, { "name": "user_lp_token_ta", "writable": true }, { "name": "pool_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 97, 117, 116, 104 ] } ] } }, { "name": "stablecoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "levercoin_pool", "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "lp_token_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "lp_token_mint" } ] } }, { "name": "lp_token_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 115, 116, 97, 107, 101, 100, 95, 104, 121, 85, 83, 68 ] } ] } }, { "name": "sol_usd_pyth_feed" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "amount_stablecoin", "type": "u64" } ] }, { "name": "user_withdraw", "discriminator": [ 53, 254, 26, 242, 119, 237, 73, 33 ], "accounts": [ { "name": "user", "writable": true, "signer": true }, { "name": "pool_config", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103 ] } ] } }, { "name": "hylo", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 108, 111 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "stablecoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 104, 121, 85, 83, 68 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "user_stablecoin_ta", "writable": true }, { "name": "fee_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 102, 101, 101, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "fee_vault", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "fee_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "user_lp_token_ta", "writable": true }, { "name": "pool_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 112, 111, 111, 108, 95, 97, 117, 116, 104 ] } ] } }, { "name": "stablecoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "stablecoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "levercoin_mint", "pda": { "seeds": [ { "kind": "const", "value": [ 120, 83, 79, 76 ] } ], "program": { "kind": "const", "value": [ 245, 187, 72, 160, 4, 116, 48, 134, 197, 164, 152, 189, 233, 219, 27, 124, 201, 65, 103, 243, 58, 82, 140, 90, 13, 150, 83, 40, 223, 158, 124, 33 ] } } }, { "name": "levercoin_pool", "writable": true, "pda": { "seeds": [ { "kind": "account", "path": "pool_auth" }, { "kind": "const", "value": [ 6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169 ] }, { "kind": "account", "path": "levercoin_mint" } ], "program": { "kind": "const", "value": [ 140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89 ] } } }, { "name": "user_levercoin_ta", "writable": true }, { "name": "lp_token_auth", "pda": { "seeds": [ { "kind": "const", "value": [ 109, 105, 110, 116, 95, 97, 117, 116, 104 ] }, { "kind": "account", "path": "lp_token_mint" } ] } }, { "name": "lp_token_mint", "writable": true, "pda": { "seeds": [ { "kind": "const", "value": [ 115, 116, 97, 107, 101, 100, 95, 104, 121, 85, 83, 68 ] } ] } }, { "name": "sol_usd_pyth_feed" }, { "name": "hylo_event_authority" }, { "name": "hylo_exchange_program", "address": "HYEXCHtHkBagdStcJCp3xbbb9B7sdMdWXFNj6mdsG4hn" }, { "name": "system_program", "address": "11111111111111111111111111111111" }, { "name": "token_program", "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { "name": "associated_token_program", "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { "name": "event_authority", "pda": { "seeds": [ { "kind": "const", "value": [ 95, 95, 101, 118, 101, 110, 116, 95, 97, 117, 116, 104, 111, 114, 105, 116, 121 ] } ] } }, { "name": "program" } ], "args": [ { "name": "amount_lp_token", "type": "u64" } ] } ], "accounts": [ { "name": "Hylo", "discriminator": [ 114, 161, 169, 210, 204, 175, 149, 174 ] }, { "name": "PoolConfig", "discriminator": [ 26, 108, 14, 123, 116, 230, 129, 43 ] }, { "name": "PriceUpdateV2", "discriminator": [ 34, 241, 35, 99, 157, 126, 244, 205 ] } ], "events": [ { "name": "RebalanceLeverToStableEvent", "discriminator": [ 177, 3, 181, 27, 187, 44, 49, 109 ] }, { "name": "RebalanceStableToLeverEvent", "discriminator": [ 117, 99, 97, 34, 247, 186, 34, 198 ] }, { "name": "StabilityPoolStats", "discriminator": [ 146, 92, 252, 198, 221, 148, 242, 182 ] }, { "name": "UpdateAdminEvent", "discriminator": [ 225, 152, 171, 87, 246, 63, 66, 234 ] }, { "name": "UpdateWithdrawalFeeEvent", "discriminator": [ 204, 60, 32, 187, 54, 211, 107, 115 ] }, { "name": "UserDepositEvent", "discriminator": [ 70, 55, 110, 118, 235, 187, 239, 33 ] }, { "name": "UserWithdrawEventV0", "discriminator": [ 142, 135, 121, 155, 248, 252, 59, 161 ] }, { "name": "UserWithdrawEventV1", "discriminator": [ 51, 241, 35, 135, 62, 237, 83, 122 ] } ], "errors": [ { "code": 6000, "name": "RebalanceDisabled", "msg": "Rebalance is disabled due to stability or pool amount constraint not \\\n being met." }, { "code": 6001, "name": "DepositDisabled", "msg": "Deposits to pool disabled due to active rebalancing." } ], "types": [ { "name": "FeePair", "docs": [ "Represents the spread of fees between mint and redeem for protocol tokens.", "All fees must be in basis points to represent a fractional percentage", "directly applicable to a token amount e.g. `0.XXXX` or `bips x 10^-4`." ], "type": { "kind": "struct", "fields": [ { "name": "mint", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "redeem", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "Hylo", "type": { "kind": "struct", "fields": [ { "name": "admin", "type": "pubkey" }, { "name": "treasury", "type": "pubkey" }, { "name": "lst_registry", "type": "pubkey" }, { "name": "stablecoin_mint", "type": "pubkey" }, { "name": "levercoin_mint", "type": "pubkey" }, { "name": "stability_pool", "type": "pubkey" }, { "name": "stablecoin_mint_bump", "type": "u8" }, { "name": "stablecoin_auth_bump", "type": "u8" }, { "name": "levercoin_mint_bump", "type": "u8" }, { "name": "levercoin_auth_bump", "type": "u8" }, { "name": "registry_auth_bump", "type": "u8" }, { "name": "total_sol_cache_bump", "type": "u8" }, { "name": "oracle_interval_secs", "type": "u64" }, { "name": "stablecoin_fees", "type": { "defined": { "name": "StablecoinFees" } } }, { "name": "levercoin_fees", "type": { "defined": { "name": "LevercoinFees" } } }, { "name": "total_sol_cache", "type": { "defined": { "name": "TotalSolCache" } } }, { "name": "yield_harvest_cache", "type": { "defined": { "name": "YieldHarvestCache" } } }, { "name": "yield_harvest_config", "type": { "defined": { "name": "YieldHarvestConfig" } } }, { "name": "stability_threshold_1", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stability_threshold_2", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "oracle_conf_tolerance", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "sol_usd_oracle", "type": "pubkey" }, { "name": "lst_swap_fee", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "_reserved", "type": { "array": [ "u8", 78 ] } } ] } }, { "name": "LevercoinFees", "type": { "kind": "struct", "fields": [ { "name": "normal", "type": { "defined": { "name": "FeePair" } } }, { "name": "mode_1", "type": { "defined": { "name": "FeePair" } } }, { "name": "mode_2", "type": { "defined": { "name": "FeePair" } } } ] } }, { "name": "PoolConfig", "type": { "kind": "struct", "fields": [ { "name": "admin", "type": "pubkey" }, { "name": "pool_auth_bump", "type": "u8" }, { "name": "lp_token_auth_bump", "type": "u8" }, { "name": "lp_token_mint_bump", "type": "u8" }, { "name": "withdrawal_fee", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "_reserved", "type": { "array": [ "u8", 55 ] } } ] } }, { "name": "PriceFeedMessage", "repr": { "kind": "c" }, "type": { "kind": "struct", "fields": [ { "name": "feed_id", "docs": [ "`FeedId` but avoid the type alias because of compatibility issues with Anchor's `idl-build` feature." ], "type": { "array": [ "u8", 32 ] } }, { "name": "price", "type": "i64" }, { "name": "conf", "type": "u64" }, { "name": "exponent", "type": "i32" }, { "name": "publish_time", "docs": [ "The timestamp of this price update in seconds" ], "type": "i64" }, { "name": "prev_publish_time", "docs": [ "The timestamp of the previous price update. This field is intended to allow users to", "identify the single unique price update for any moment in time:", "for any time t, the unique update is the one such that prev_publish_time < t <= publish_time.", "", "Note that there may not be such an update while we are migrating to the new message-sending logic,", "as some price updates on pythnet may not be sent to other chains (because the message-sending", "logic may not have triggered). We can solve this problem by making the message-sending mandatory", "(which we can do once publishers have migrated over).", "", "Additionally, this field may be equal to publish_time if the message is sent on a slot where", "where the aggregation was unsuccesful. This problem will go away once all publishers have", "migrated over to a recent version of pyth-agent." ], "type": "i64" }, { "name": "ema_price", "type": "i64" }, { "name": "ema_conf", "type": "u64" } ] } }, { "name": "PriceUpdateV2", "docs": [ "A price update account. This account is used by the Pyth Receiver program to store a verified price update from a Pyth price feed.", "It contains:", "- `write_authority`: The write authority for this account. This authority can close this account to reclaim rent or update the account to contain a different price update.", "- `verification_level`: The [`VerificationLevel`] of this price update. This represents how many Wormhole guardian signatures have been verified for this price update.", "- `price_message`: The actual price update.", "- `posted_slot`: The slot at which this price update was posted." ], "type": { "kind": "struct", "fields": [ { "name": "write_authority", "type": "pubkey" }, { "name": "verification_level", "type": { "defined": { "name": "VerificationLevel" } } }, { "name": "price_message", "type": { "defined": { "name": "PriceFeedMessage" } } }, { "name": "posted_slot", "type": "u64" } ] } }, { "name": "RebalanceLeverToStableEvent", "type": { "kind": "struct", "fields": [ { "name": "levercoin_swapped", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "RebalanceStableToLeverEvent", "type": { "kind": "struct", "fields": [ { "name": "stablecoin_swapped", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "StabilityPoolStats", "type": { "kind": "struct", "fields": [ { "name": "lp_token_nav", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "lp_token_supply", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stability_pool_cap", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_in_pool", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_nav", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "levercoin_in_pool", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "levercoin_nav", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "StablecoinFees", "type": { "kind": "struct", "fields": [ { "name": "normal", "type": { "defined": { "name": "FeePair" } } }, { "name": "mode_1", "type": { "defined": { "name": "FeePair" } } } ] } }, { "name": "TotalSolCache", "type": { "kind": "struct", "fields": [ { "name": "current_update_epoch", "type": "u64" }, { "name": "total_sol", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "UFixValue64", "docs": [ "A value-space `Fix` where base is always 10 and bits are a concrete type.", "Intended for serialized storage in Solana accounts where generics won't work." ], "type": { "kind": "struct", "fields": [ { "name": "bits", "type": "u64" }, { "name": "exp", "type": "i8" } ] } }, { "name": "UpdateAdminEvent", "type": { "kind": "struct", "fields": [ { "name": "old_admin", "type": "pubkey" }, { "name": "new_admin", "type": "pubkey" } ] } }, { "name": "UpdateWithdrawalFeeEvent", "type": { "kind": "struct", "fields": [ { "name": "old_withdrawal_fee", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "new_withdrawal_fee", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "UserDepositEvent", "type": { "kind": "struct", "fields": [ { "name": "stablecoin_deposited", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "lp_token_nav", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "lp_token_minted", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "UserWithdrawEventV0", "type": { "kind": "struct", "fields": [ { "name": "lp_token_burned", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_withdrawn", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "levercoin_withdrawn", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "UserWithdrawEventV1", "type": { "kind": "struct", "fields": [ { "name": "lp_token_burned", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_withdrawn", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_fees", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_nav", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "levercoin_withdrawn", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "levercoin_nav", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "VerificationLevel", "docs": [ "Pyth price updates are bridged to all blockchains via Wormhole.", "Using the price updates on another chain requires verifying the signatures of the Wormhole guardians.", "The usual process is to check the signatures for two thirds of the total number of guardians, but this can be cumbersome on Solana because of the transaction size limits,", "so we also allow for partial verification.", "", "This enum represents how much a price update has been verified:", "- If `Full`, we have verified the signatures for two thirds of the current guardians.", "- If `Partial`, only `num_signatures` guardian signatures have been checked.", "", "# Warning", "Using partially verified price updates is dangerous, as it lowers the threshold of guardians that need to collude to produce a malicious price update." ], "type": { "kind": "enum", "variants": [ { "name": "Partial", "fields": [ { "name": "num_signatures", "type": "u8" } ] }, { "name": "Full" } ] } }, { "name": "YieldHarvestCache", "docs": [ "Records epoch yield harvest information for off-chain consumers." ], "type": { "kind": "struct", "fields": [ { "name": "epoch", "type": "u64" }, { "name": "stability_pool_cap", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "stablecoin_yield_to_pool", "type": { "defined": { "name": "UFixValue64" } } } ] } }, { "name": "YieldHarvestConfig", "docs": [ "Captures yield harvest configuration as two basis point values:" ], "type": { "kind": "struct", "fields": [ { "name": "allocation", "type": { "defined": { "name": "UFixValue64" } } }, { "name": "fee", "type": { "defined": { "name": "UFixValue64" } } } ] } } ], "constants": [ { "name": "POOL_AUTH", "type": { "array": [ "u8", 9 ] }, "value": "[112, 111, 111, 108, 95, 97, 117, 116, 104]" }, { "name": "POOL_CONFIG", "type": { "array": [ "u8", 11 ] }, "value": "[112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103]" }, { "name": "STAKED_HYUSD", "type": { "array": [ "u8", 12 ] }, "value": "[115, 116, 97, 107, 101, 100, 95, 104, 121, 85, 83, 68]" } ] }