I was able to figure this out pretty quickly, but there should probably be some ingame tutorial message clarifying the feature. Something as simple as "Store all the coins inside the chest to clear the level" so the player knows what they are supposed to do.