Skip to content

Obsolete auction logic removed.#108

Open
cdincoglu wants to merge 3 commits intomainfrom
cd/removeAuction
Open

Obsolete auction logic removed.#108
cdincoglu wants to merge 3 commits intomainfrom
cd/removeAuction

Conversation

@cdincoglu
Copy link
Copy Markdown
Collaborator

@cdincoglu cdincoglu commented Mar 19, 2026

Obsolete auction logic removed. Added simple controls for a future token launch implementation.

PortfolioSub: renamed autoFill as autoGas
PortfolioSub: Removed floor from the fee calculations and added minmum automic 1 uniit fee, In other to fully allow much smaller taker orders using minTradeAmounts. if $1 trades are allowed, people would have paid no commissions without this change.
PortfolioSub: Use of the new Execution struct to save gas & increase readability and combine getFeeRates with calculateFeeAmounts functions

TradePairs: repurposed tradePair.auctionPrice to hold omnivault address using setAuctionVaultAdress & getAuctionVaultAdress
TradePairs: added requires to MinPostAmount & minTradeAmount. MinPostAmount is always >= minTradeAmount.
TradePairs: added a new unsolicited cancel use case where partially filled resting orders are canceled if their remaining is less than minTradeAmount /10 for good ob hygene.
TradePairs: Removed redundant "return takerOrder" from matchOrder
TradePairs: Removed redundant "return takerOrder" from addExecution
TradePairs: Removed the redundant "return price" from addOrderChecks
TradePairs: Added decrement to maxNbrOfFills to include STP-driven cancellations toward the gas iteration budget.
TradePairs: Gas Optimization by minmizing lookups from tradePairMap & orderMap
TradePairs: Use of the new Execution struct for Gas Optimization & increase readability

ExchangeSub : bug fix of the obsolete function addToken ( _srcChainSymbol, _subnetSymbol were in opposite locations) we may be used again.
ExchangeSub : Documented the new Auction Workflow

UtilsLibrary: uint256ToAddress , addressToUint256 & getFee functions

package upgrades

…ken launch implementation.

PortfolioSub: renamed autoFill as autoGas
PortfolioSub: Removed floor from the fee calculations and added minmum automic 1 uniit fee, In other to fully allow much smaller taker orders using minTradeAmounts.
if $1 trades are allowed, people would have paid no commissions without this change.

TradePairs: repurposed tradePair.auctionPrice to hold omnivault address using setAuctionVaultAdress & getAuctionVaultAdress
TradePairs: added requires to MinPostAmount & minTradeAmount. MinPostAmount is always >= minTradeAmount.
TradePairs: added a new unsolicited cancel use case where partially filled resting orders are canceled if their remaining is less than minTradeAmount /10  for good ob hygene.
TradePairs: Removed redundant "return takerOrder"  from matchOrder
TradePairs: Removed redundant "return takerOrder" from addExecution
TradePairs: Removed the redundant "return price"  from addOrderChecks
TradePairs: Added decrement to Count STP-driven cancellations toward the gas iteration budget.

ExchangeSub : addToken bug fix ( _srcChainSymbol, _subnetSymbol were in opposite locations.
ExchangeSub : Documented the new Auction Workflow

UtilsLibrary: uint256ToAddress , addressToUint256 & getFee functions

package upgrades
@cdincoglu cdincoglu requested review from jaimi-io and ngurmen March 19, 2026 18:06
… orderMap

TradePairs: Use of the new Execution struct to save gas & increase readibility
PortfolioSub: Use of the new Execution struct to save gas & increase readibility and combine getFeeRates with calculateFeeAmounts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants