Skip to content

Commit

Permalink
Reproduce transaction FRcorNvFojoxBrdiVMTy9gRD3H8EYXXKau4feevMZmFV (#498
Browse files Browse the repository at this point in the history
)
  • Loading branch information
birchmd committed Jun 8, 2022
1 parent 68a75d6 commit beece81
Show file tree
Hide file tree
Showing 3 changed files with 1,042 additions and 0 deletions.
20 changes: 20 additions & 0 deletions engine-tests/src/tests/repro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@ fn repro_8ru7VEA() {
});
}

/// This test reproduces a transaction from mainnet:
/// https://explorer.mainnet.near.org/transactions/FRcorNvFojoxBrdiVMTy9gRD3H8EYXXKau4feevMZmFV
/// It hit the gas limit at the time of its execution (engine v2.5.2 after 300 Tgas limit increase).
/// The transaction performs some complex defi interaction (description from the user):
/// 1. It sell 30% BSTN to NEAR, and mint cNEAR
/// 2. It sells 35% BSTN to NEAR, and make NEAR-BSTN LP token
/// 3. Deposit LP token created from step2 to Trisolaris farm
#[allow(non_snake_case)]
#[test]
fn repro_FRcorNv() {
repro_common(ReproContext {
snapshot_path: "src/tests/res/aurora_state_FRcorNv.json",
block_index: 64328524,
block_timestamp: 1650960438774745116,
input_path: "src/tests/res/input_FRcorNv.hex",
evm_gas_used: 1239721,
near_gas_used: 245,
});
}

fn repro_common<'a>(context: ReproContext<'a>) {
let ReproContext {
snapshot_path,
Expand Down
1,021 changes: 1,021 additions & 0 deletions engine-tests/src/tests/res/aurora_state_FRcorNv.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions engine-tests/src/tests/res/input_FRcorNv.hex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f86d5d8088ffffffffffffffff94b6d6790e1235d16d3a783b9046ee0a151641feda80844641257d849c8a82c7a0eeb3ee82d97af1bc11342c76ba80e52c96a5926e647eb00921a03402408bec7da05116201b0c514cdbbeecd8a7c177b961d04e49535b5a2406b1a135c82c076778

0 comments on commit beece81

Please sign in to comment.