Poland
Article 257. ยง 2. In applying pre-trial detention, the court may reserve that the measure will be amended when an agreed bail is posted with the court within the prescribed time-limit.
Interim release pending surrender
EDIT.