<!-- canonical: https://0xsimao.com/findings/ostium-link-keep-config-initialize -->

# OstiumLinkUpKeep Config Not Set In initialize()

Low/Info · Three Sigma · RWA perpetuals DEX · 19th February, 2024

Finding 3S-OS-N10 of the Ostium security review.

- Protocol: https://www.ostium.com/
- Report: /reports/ostium
- Source: https://cdn.sanity.io/files/qoqld077/production/a95b9c69e0f65d1d6b0e649f0d62a362358ca8ce.pdf

---

### Description

The variable [s_config](https://github.com/0xOstium/smart-contracts-threeSigma/blob/869392c4c9114ad468f6c2ea7e425269faf2fe2b/src/OstiumLinkUpKeep.sol#L21) is not set in the initializer function, which is preferable.

### Recommendation

Although setConfig is called right after the deployment of the contract in the deployer
script, it will be more efficient to pass the config to the initializer and call setConfig there.

### Status

Acknowledged
