Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Fix: update type for Dex fee when constructing a checkpoint. #87

Open
0xKitsune opened this issue Mar 26, 2023 · 0 comments
Open

Fix: update type for Dex fee when constructing a checkpoint. #87

0xKitsune opened this issue Mar 26, 2023 · 0 comments

Comments

@0xKitsune
Copy link
Owner

Right now, when constructing a checkpoint, we are saving the Dex fee as a String, but it needs to be a number. This can be fixed very simply but just switching the existing code:

  dex_map.insert(
    String::from("fee"),
    format!("{:?}", uniswap_v2_dex.fee).into(),
);

to this:

  dex_map.insert(
    String::from("fee"),
     uniswap_v2_dex.fee.into(),
);

Link to the line of code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant