docs: update gas fee strategy examples to remove data_size_limit parameters
Remove obsolete data_size_limit parameters from all gas fee strategy function calls in documentation and examples, following the recent API changes. Changes: - Update README.md and README_CN.md gas fee strategy examples - Update all example files using set_global_fee_strategy (from 8 params to 6 params) - Update gas_fee_strategy example for set_normal_fee_strategy and set_high_low_fee_strategy - Remove the last two parameters (256 * 1024, 0) from all calls 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.5
parent
321f4c4a25
commit
b17f1157b6
@@ -12,7 +12,7 @@ async fn main() {
|
||||
|
||||
// Set global strategy
|
||||
println!("1. Set global strategy");
|
||||
gas_fee_strategy.set_global_fee_strategy(150000,150000, 500000,500000, 0.001, 0.001, 256 * 1024, 0);
|
||||
gas_fee_strategy.set_global_fee_strategy(150000, 150000, 500000, 500000, 0.001, 0.001);
|
||||
|
||||
// Print all strategies
|
||||
println!("\n2. Print all strategies");
|
||||
@@ -30,8 +30,6 @@ async fn main() {
|
||||
500000, // cu_price
|
||||
0.0, // buy_tip
|
||||
0.0, // sell_tip
|
||||
256 * 1024,
|
||||
0,
|
||||
);
|
||||
|
||||
// Add high-low fee strategy for SwqosType::Jito on Buy
|
||||
@@ -44,7 +42,6 @@ async fn main() {
|
||||
10 * 1_000_000, // high cu_price
|
||||
0.001, // low tip
|
||||
0.1, // high tip
|
||||
0,
|
||||
);
|
||||
|
||||
// Print all strategies
|
||||
@@ -59,8 +56,6 @@ async fn main() {
|
||||
500000, // cu_price
|
||||
0.0001, // buy_tip
|
||||
0.0001, // sell_tip
|
||||
256 * 1024,
|
||||
0,
|
||||
);
|
||||
|
||||
// Print all strategies
|
||||
|
||||
Reference in New Issue
Block a user