Skip to content

Commit

Permalink
feature: burn in account (#17)
Browse files Browse the repository at this point in the history
* removing revert on not expired token to allow querying before exercise window

* adding new action type

* adding comment

* fmt and snapshot
  • Loading branch information
dsshap authored Oct 12, 2023
1 parent a296792 commit a38e664
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ChainlinkOracleInternalTests:testDecimalConversion0Decimals() (gas: 628)
ChainlinkOracleInternalTests:testDecimalConversionDiffDecimals() (gas: 2138)
ChainlinkOracleInternalTests:testDecimalConversionDiffDecimals2() (gas: 2046)
ChainlinkOracleInternalTests:testDecimalConversionDiffDecimals3() (gas: 2046)
ChainlinkOracleInternalTests:testDecimalConversionDiffDecimalsFuzz(uint8,uint8) (runs: 256, μ: 5260, ~: 5271)
ChainlinkOracleInternalTests:testDecimalConversionDiffDecimalsFuzz(uint8,uint8) (runs: 256, μ: 5263, ~: 5271)
ChainlinkOracleInternalTests:testDecimalConversionNormalDecimals() (gas: 808)
ChainlinkOracleTest:testCannotGetSpotWhenAggregatorIsNotSet() (gas: 23300)
ChainlinkOracleTest:testCannotGetSpotWhenAggregatorIsStale() (gas: 41702)
Expand Down
3 changes: 2 additions & 1 deletion src/config/enums.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ enum ActionType {
MintShortIntoAccount, // increase short (debt) position in one subAccount, increase long token directly to another subAccount
TransferCollateral, // transfer collateral directly to another subAccount
TransferLong, // transfer long directly to another subAccount
TransferShort // transfer short directly to another subAccount
TransferShort, // transfer short directly to another subAccount
BurnShortInAccount // decreases short position in one subAccount, decreases long position in another
}

0 comments on commit a38e664

Please sign in to comment.