Applying the Central Bank Loan/Income rule, you can borrow €368k. After selling your current home and paying off your loan, you'll have €68k in cash. Applying the Central Bank Loan/Value rule, you can borrow €272k to buy a home for €340k.
In your case, there is the possibility of applying for an exemption to the Loan/Value rule.
You will need to demonstrate an ability to handle the proposed repayments at stress tested levels for a 3 to 6 month period depending on the bank. You will need to manage your accounts prudently and have clean credit records. You will also need money for stamp duty (1%) and legals.
What level are you hoping to buy at?