니/으니
since / upon doing
Explanation
니/으니 is a reason or discovery ending: since …, because …, or when I did …, I found ….
Give the reason for what comes next
Use 니 after a vowel-ending stem and 으니 after a consonant. A final ㄹ drops: 알다 → 아니.
Report what doing something revealed
The first action leads to noticing the second situation. This is common in 보니, “on looking/trying.”
In 미끄러우니, the adjective 미끄럽다 follows its usual ㅂ-irregular change.
A discovery can be something ordinary. In the second example, imagine opening a box you thought was full. Opening it is how you learned it was empty.