After allocations to required reserves, a credit union may declare dividends on general shares, membership shares, or both, at the discretion of its board of directors and as its bylaws provide.