Skip to content
Open

V1 #7

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ typechain

node_modules

# Hardhat files
cache
artifacts

# environment
.env

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In addition to the order pools, the `LongTermOrders` struct keep the state of th

### Fixed Point Math

This implementation uses the [PBRMath Library](https://github.com/hifi-finance/prb-math) for fixed point arithmetic, in order to implement the closed form solution to settling long term trades. Efforts were made to make the computation numerically stable, but there's remaining work to be done here in order to ensure that the computation is correct for the full set of expected inputs.
This implementation uses the [PRBMath Library](https://github.com/hifi-finance/prb-math) for fixed point arithmetic, in order to implement the closed form solution to settling long term trades. Efforts were made to make the computation numerically stable, but there's remaining work to be done here in order to ensure that the computation is correct for the full set of expected inputs.

## How to run

Expand All @@ -42,6 +42,6 @@ npx hardhat test

**Mainnet:**

**Ropsten:** [0xe1D631533F91F1e0738bba6181a8Ed684f7CAa35](https://ropsten.etherscan.io/address/0xe1D631533F91F1e0738bba6181a8Ed684f7CAa35)
**Ropsten:** [0xbfF3Bce78DE8b5829fE0476692279c57d81aF7e1](https://ropsten.etherscan.io/address/0xbfF3Bce78DE8b5829fE0476692279c57d81aF7e1)

**Kovan:** [0x6DDFEb84c9e9E9681f2B9AbbD0726d834f0305c6](https://kovan.etherscan.io/address/0x6DDFEb84c9e9E9681f2B9AbbD0726d834f0305c6)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
231,251 changes: 231,251 additions & 0 deletions artifacts/build-info/6bea006b914ea09cbe976bf1a405ffa8.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion artifacts/contracts/TWAMM.sol/TWAMM.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
4 changes: 2 additions & 2 deletions artifacts/contracts/TWAMM.sol/TWAMM.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
2 changes: 1 addition & 1 deletion artifacts/contracts/mock/ERC20Mock.sol/ERC20Mock.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
2 changes: 1 addition & 1 deletion artifacts/hardhat/console.sol/console.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
2 changes: 1 addition & 1 deletion artifacts/prb-math/contracts/PRBMath.sol/PRBMath.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/6c7bf3c9ff1e3d689948f4172a80975c.json"
"buildInfo": "../../../build-info/6bea006b914ea09cbe976bf1a405ffa8.json"
}
4 changes: 2 additions & 2 deletions cache/solidity-files-cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@
]
},
"/Users/luffy/Code/Pulsar/TWAMM-Contracts/contracts/TWAMM.sol": {
"lastModificationDate": 1638838956317,
"contentHash": "61392accc897b8562ff58a886c2e45cc",
"lastModificationDate": 1638842214851,
"contentHash": "d7e6ffa4536f09027db638495ff0c159",
"sourceName": "contracts/TWAMM.sol",
"solcConfig": {
"version": "0.8.9",
Expand Down
97 changes: 0 additions & 97 deletions contracts/PulsarERC20.sol

This file was deleted.

56 changes: 0 additions & 56 deletions contracts/PulsarFactory.sol

This file was deleted.

Loading