# Platform Parameters

The following are variables stored in component state that are possible to update with proof of the Liquify Owner Badge which would be held by the DAO.

```rust
minimum_liquidity: dec!(10000),
minimum_refill_threshold: dec!(10000),
max_fills_per_cycle: 50,
small_order_threshold: dec!(1000), 
platform_fee: dec!(0.0005),
```

Some design choices had to be made to make this dapp possible while avoiding hitting transaction limits and allowing any native Radix LSU to be unstaked as well as performing all of these staking operations in a single transaction. Setting the minimum liquidity and minimum refill threshold paremeters to a value like 10,000 XRD greatly improves the efficiency of the unstaking process for large amounts of LSUs.  There is a finite number of iterations through different liquidity when filling an order before a transaction becomes too large.  The greater the average liquidity, the greater the unstake sizes can be filled. \
\
Max fills per cycle is currently set to 50 which results in a transaction cost between 6-7 XRD.

Small order threshold is the value under which orders will ONLY be filled by liquidity set to auto\_unstake = false.  This value is currently set to 1000 XRD so any amount of LSUs unstaked that has a redemption value of less than 1000 XRD will only be filled by liquidity set to not automatically unstake.  This allows liquidity providers using auto\_unstake to avoid having to deal with stake claim NFTs with smaller amounts of xrd to claim.&#x20;

Platform fee is 0.05% of each unstaked amount which is included in the transaction preview of an unstake.
